gdm Init

I am using XFCE and decided to make my laptop boot directly to X. So, I installed gdm from SBo and changed the runlevel in /etc/inittab:

# Default runlevel. (Do not set to 0 or 6)
id:4:initdefault:

After a restart, the machine boots up directly to a graphic log in screen.

I like setting the brightness of my screen to a lower value, which I usually do by adding these two lines to ~/.xinitrc:

xgamma -gamma 0.4
xbacklight -set 70

Similarly to the case of KDM, this approach does not work when using GDM either. So, after some searching, the solution I found is adding the above lines to /etc/gdm/Init/Default. I place them below the first two lines of the file, like this:

PATH=/usr/bin:$PATH
OLD_IFS=$IFS

xgamma -gamma 0.4
xbacklight -set 70

Log off and the new brightness values are already set at the log in.

About these ads

2 Comments

Filed under desktop, system

2 responses to “gdm Init

  1. It is nice to see someone who is not afraid of inittab. The though of editing inittab gives me serious concern.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s