Flat R-bundles on surfaces I have questions about the definition of representation variety.  In François Labourie's book "Lectures on representations of surface groups", Section 3.5, the author gives four models of the representation variety. I am confused about the model using the language of vector bundles.
Definition 1 (representation variety):
A representation variety of $S$ is gauge equivalences of pairs ($G$-vector bundles $L$ over the surface $S$, flat $G$-connection on $L$).
Definition 2 (Gauge equivalence):
Two connections on the same vector bundle are said to be gauge equivalent if the can be connected using the pullback of some lift of the identity map.
What confused me is definition 2.  In order to use gauge equivalence in the definition of representation variety, why do we need to restrict the definition to the same vector bundle?
In other words, can we say that every flat $\bf R$-vector bundle over the surface is trivial (where $\bf R$ is the real number field)?
 A: A flat connection defined on a vector bundle $p:E\rightarrow S$ whose typical fibre is $V$ is defined by a representation $\rho:\pi_1(S)\rightarrow V$ which is the holonomy of the flat connection. Let $\hat S$ be the universal cover of $S$, $E$ is the quotient of $\hat S\times V$ by the diagonal action of $\pi_1(S)$ where $\pi_1(S)$ acts on $\hat S$ by the Deck representations.
The bundles, $p:E\rightarrow S$ is isomorphic to $p':E\rightarrow S$ if there exists an isomorphism of flat $f:E\rightarrow E'$ of vectors bundles. This morphism lifts to a morphism $\hat f:\hat S\times V\rightarrow \hat S\times V'$ which commutes with the action of $\pi_1(S)$, we deduce that there exists an isomorphism $g:V\rightarrow V'$ such that $g\circ \rho(\gamma)=h(\rho(\gamma))\circ g$.
We can always assume that $V=V'$ by taking any isomorphism $l:V'\rightarrow V$  between and replace $\rho'$ by $l\circ \rho'$, you obtain equivalent bundles in the sense above. And if you fix $V=V'$, the relation above means that $\rho$ and $\rho'$ are conjugated.
A: Any flat $\mathbb{R}^{+}$-bundle is precisely given, as in Tsemo Aristide's answer, by a representation of the fundamental group of the surface into $\mathbb{R}^+$. As $\mathbb{R}^+$ is abelian, this descends to an element of $H_1(S,\mathbb{R}^+)$, whose logarithm is a uniquely determined element of $H_1(S,\mathbb{R})=\mathbb{R}^{2g}$ where $g$ is the genus (assuming $S$ is orientable). So there are many such bundles which are not trivial.
