Fix an odd prime $p$ and an integer $r\geq 1$. Fix a Dirichlet character $\chi$ of primitive conductor $p^r$. Let $f\in S\_2(p^r,\chi)$ be a normalized newform of weight $2$, level $p^r$ and nebentype $\chi$. Assume $f$ is ordinary at $p$.


Let $K\_{f,p}$ be the finite extension of $\mathbb{Q}\_p$ generated by the fourier coefficients of $f$. Associated to $f$ there is a Galois representation
$$
\varrho\_f: G\_{\mathbb{Q}} \longrightarrow \mathrm{GL}\_2(K\_{f,p})
$$
which is unramified at all primes different from $p$. By a theorem of Mazur and Wiles, the restriction of $\varrho\_f$ to a decomposition subgroup $D\_p$ of $G\_{\mathbb Q}$ is of the form
$$
\varrho\_{f|D\_p}: \begin{pmatrix} \alpha\_p & \star \\ 0 & \beta\_p \end{pmatrix}
$$
on a suitable basis. Here $\alpha\_p$ and $\beta\_p$ are characters of $D\_p$. 


Pretty much is known about the behavior of these two characters, but a precise description of them depends on the way one has constructed $\varrho\_f$. To be sure what are we talking about, let me sketch (and fix) one of the various possible such constructions (all them are the same up to twist):


Let $X\_r:=X\_1(p^r)/\mathbb{Q}$ denote the modular curve associated to the moduli problem of classifying pairs $(E,i)$ where $E$ is an elliptic curve and $i$ is an isomorphism between the group scheme $\mu\_{p^r}$ and a closed finite flat subgroup scheme of $E$. This model of $X\_1(p^r)$ over $\mathbb{Q}$ satisfies that the cusp at infinity is a rational point. Don't confuse this model with another natural model $X'\_1(p^r)$ this curve has over $\mathbb{Q}$, which arises by replacing the above level structure $i$ by the level structure consisting of the choice of a point of exact order $p^r$ on $E$. Curves $X\_1(p^r)$ and $X'\_1(p^r)$ are not isomorphic over $\mathbb{Q}$, but one is the twist of the other over $\mathbb{Q}(\mu\_{p^r})$.


Let $A\_f/\mathbb{Q}$ denote the abelian variety associated by Eichler-Shimura to $f$. This is a simple abelian variety over $\mathbb{Q}$ equipped with a surjection $\mathrm{Jac}(X\_r) \rightarrow A\_f$. The endomorphism algebra $\mathrm{End}(A\_f)\otimes \mathbb{Q}$ is isomorphic to a number field $K$ such that $d=[K:\mathbb{Q}]=\mathrm{dim}(A\_f)$. 
Let $V\_p(A\_f):=H^1\_{\mathrm{et}}(\bar{A}\_f,\mathbb{Q}\_p)(1)$ denote the $p$-adic Tate module of $A\_f$. The Tate twist "$(1)$" by the cyclotomic character is taken here so that $V\_p(A\_f)$ is Kummer self-dual, that is to say, there is an isomorphism of Galois modules $V\_p(A\_f) \simeq \mathrm{Hom}(V\_p(A\_f),\mathbb{Q}\_p(1))$. The Galois group $G\_{\mathbb{Q}}$ acts on $V\_p(A\_f)$ in a natural way, 
giving rise to a representation $r: G\_{\mathbb{Q}} \longrightarrow \mathrm{GL}(V\_p(A\_f))\simeq \mathrm{GL}\_{2d}(\mathbb{Q}\_p)$. Since the action of $G\_{\mathbb{Q}}$ commutes with the endomorphisms of $A\_f$, it follows that $r$ factors through $\prod\_{\wp} \mathrm{GL}\_{2}(K\_{\wp})$, where $\wp$ runs over the prime ideals of $K$ over $p$ and $K\_{\wp}$ denotes the completion of $K$ with respect to this prime. Projecting to one of these factors yields the sough-after representation, denoted above
$$
\varrho\_f: G\_{\mathbb{Q}} \longrightarrow \mathrm{GL}\_2(K\_{f,p}).
$$


The question I would like to ask is: with this so-defined $\varrho\_f$, what is $\alpha\_p$ and what $\beta\_p$? One of the two is surely the unramified character $\eta\_f$ sending $\mathrm{Frob}\_p$ to $a\_p(f)$ (or its inverse, $\eta\_f^{-1}$), and the other encodes also the cyclotomic character and the finite character $\chi$.


There are many papers where one can find explicit formulae describing $\alpha\_p$ and $\beta\_p$, but most often they state something like "associated to an ordinary newform $f$ there is a Galois representation whose restriction to $D\_p$ is ... with $\alpha\_p = ...$ and $\beta\_p= ...$". My question asks for something more precise: if $\varrho\_f$ is the *one* constructed above, who is $\alpha\_p$ and who is $\beta\_p$?



Ordinary representations associated to modularforms: Étale submodules versus étale quotients
The usual normalizations for Galois representation attached to an eigencusp form $f$ is either to take the étale cohomology or the usual Tate module of the abelian variety cut out in the Jacobian of the modular curve by the morphism $\lambda\_{f}$ sending the Hecke operator $T(\ell)$ to $a\_\ell$ such that $T(\ell)f=a\_\ell f$. If I understood correctly your careful explanations, your choice of normalization is thus slightly unusual because you chose to take étale cohomology and then twisted by the cyclotomic character.


Under the usual étale normalization, the determinant sends the geometric Frobenius morphism $Fr(\ell)$ for $\ell\neq p$ to $\chi(\ell)\ell$ so under your normalization, the determinant of $V\_{p}(A\_{f})$ sends the geometric Frobenius $Fr(\ell)$ for $\ell\neq p$ to $\chi(\ell)\ell^{-1}$ (the $-1=2-1-2$ comes from the determinant of the étale representation, contributing a $2-1$ and the Tate twist, contributing a $-2$) so the determinant of $V\_p(A\_f)$ is $\chi\_{cyc}\chi$.


In your situation, neither $\alpha$ nor $\beta$ is $\eta\_{f}$. Rather, $\alpha$ is $\chi\_{cyc}\eta\_f$ and $\beta$ is $\chi\eta\_f^{-1}$.


It is not clear to me whether you want a proof of this statement or not, but anyway, here follows a sketch of the simplest that I know (and it is already quite hard, in fact). First notice that it is enough to prove that $\alpha\_{et}$, the character appearing in the étale normalization without twist, is $\eta\_{f}$. In order to prove this latter claim, first assume that $\pi(f)$ is a principal series at $p$, then appeal to the existence of compatible system of Galois representations, then switch to an auxiliary prime $q$ and then use local-global compatibility of the Langlands correspondence (proved in this case by Deligne, Langlands and Carayol). This compatibility shows that the $p$-divisible group attached to $H^1\_{et}$ has a *subgroup* on which $T(p)$ acts by its invertible eigenvalue (and hence on which $Fr(p)$ acts by the invertible eigenvalue of $T(p)$). In order to prove the claim when $\pi(f)\_{p}$ is Steinberg and to complete the proof, use the density of principal series points in a Hida family to reduce to the principal series case. 


