PDA

View Full Version : [gnome] how to change brightness and resolution at login



Adsg
May 30th, 2010, 04:54 PM
Hi,
I'm able to configure the resolution and brightness with 10.04.
for example :


sudo echo -n 100 > /proc/acpi/video/VGA/LCDD/brightnessBut I can do it only for the user's parameters i.e resolution and brightness features are set up AFTER I log in.
I would like to change the resolution and brightness when ubuntu starts and at the login page

I've googled during 30 min but found only thing dealing with the xorg.conf file ... but we have not anymore this file with lucid lynx :S
anyone having an idea please ?

PS : I'm not speaking about the grub resolution :)

ajgreeny
May 30th, 2010, 05:52 PM
If you make a new empty xorg.conf file and fill it with the text that you have found, that file will be read and used, so it is worth trying that solution. There is no xorg.conf by default as it is not normally needed any more, but there are many situations where one is made and needed, eg when an nvidia proprietary driver is installed.

Adsg
May 31st, 2010, 12:31 AM
thank you ajgreeny for your help :)

well so ... unfortunately (or fortunately ;) ) I have an ATI graphic card lol

so I tried to create my xorg.conf.new (after stopping gdm of course) with the command

Xorg -configureand got

Fatal server error:
Cannot move old log file ("/var/log/Xorg.0.log" to "/var/log/Xorg.0.log.old"so I searched something else and finally I successed with

X -configureI moved it in /etc/X11 and renamed it xorg.conf

I tried first to change to decrease the brightness when the login window appears:
I located the "Monitor" section in xorg.conf and add the text:

Gamma 0.1then I rebooted .... but nothing changed. my gamma when login window appears was still max.


I tried to decrease resolution :
I in Section "Screen" I added

SubSection "Display"
Depth 16
Modes "1024x768_75.00"
EndSubSectionI rebooted ... but this time ... my computer was completly stuck. Ctrl+Alt+f1 did nothing .... I had to launch the ubuntu CD-live to remove my xorg.conf file xD lol

Adsg
May 31st, 2010, 01:25 AM
... wrong manipulation ... I thought I had found something ... but finally it ended to nothing.
damned I can't delete my message?
sorry

ajgreeny
May 31st, 2010, 11:36 AM
What ati card have you got in your machine?

I run an ati 9200SE, and have to have an xorg.conf to get a decent display. Here's the working part of mine; try editing it to suit your system and monitor, and see if that helps.

For your current problem of being stuck, boot into the cli, if needed and there you can rename your xorg.conf as xorg.confbak, and try starting gnome again with
startx
Then try your version of my xorg.conf with the added gamma details if you need to.

Section "Device"
Identifier "Configured Video Device"
Driver "ati"
Option "AccelMethod" "UXA"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
HorizSync 30-80
VertRefresh 50-75
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
DefaultDepth 16
SubSection "Display"
Modes "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
EndSection

Adsg
June 6th, 2010, 04:00 AM
Thank you ajgreeny (http://ubuntuforums.org/member.php?u=27747) :)
my graphic is an ATI Mobility Radeon HD 3650.
But my screen is a LCD one and by seeing the numbers in your xorg.conf, I think you have a CRT monitor right?. with LCD there is no HorizSync or Vertival Refresh so I fear that I might damage my screen if I try such configuration :s
But xorg is quite obscure for me and I don't really like to try things that I don't understand xD I'm a bit paranoid lol ^^

How do boot into the cli (command line interface I guess ^^) ?
.., ok I've searched in google

I found this: http://www.debianadmin.com/howto-boot-debian-in-text-mode-instead-of-graphical-mode-gui.html/comment-page-1#comment-5094

To disable the login manager from automatically running at boot up, run the following command as root

#update-rc.d -f gdm remove

To reset your login manager so that it runs at boot up, do

#update-rc.d -f gdm defaults
but this is complelty useless ... I did the remove and rebooted ... still directly to gnome -.-
in /etc/init.d/ I still had gdm link ... it reapeared automatically ....


after more searching :


You need to open the /etc/default/grub file, locate the following line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

and change it to:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash text"

and don’t forget to run ‘update-grub’ afterwards to update.
this time It worked I went to the text mode ... BUT just before arriving to the text mode, I've seen during few second the ubuntu loading image ... so If I set my xorg.conf file ... I'm stuck even before arriving to text mode ...

grrr problem lol
linux is so complicated sometimes .... so different manipulations depending on the linux distribution you use omg xD I sometimes Hate it lol
thinking to go back to windows ... lol ... no jocking ;)