SlackwareThis Forum is for the discussion of Slackware Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Since I changed my default runlevel to 4, I'm experiencing new challenges...
Now, this is the problem: Most users of this computer are using 1280x960px as default. This is the first setting in xorg.conf. However, one user (cila) is visually impaired and uses 1024x768 + gnome.
Every time cila logs in, the screen resolution is reduced to 1024x768 (as set up in gnome prefs). But after logout, XDM keeps 1024x768. And the next user is obliged to stay with this low resolution until pressing <CTRL><ALT><-> to get 1280x960.
This is not a problem with XDM, because also happens with KDM.
How to make the resolution go back to 1280x960 after cila logout?
XDM can be configured to run programs when its used, you could have it execute a program to change the screen resolution.
look at /etc/X11/xdm/Xsetup (could be a different name, depending on distro)
that file is ran every time XDM is ran, so by adding a command to change the resolution, it should change the resolution to whatever, every time XDM is ran ...... i should fix that resolution problem of yours
The idea is really good. In fact, if I put a command to set the resoluton to 1280x960 whenever XDM starts, every user will be using this higher resolution, unless a personal configuration overrides it (as cila has set up her gnome to adapt it to her needs).
In Slack, the file to put this command (or a script) is /etc/X11/xdm/Xsetup_0 (similar to the path you suggested).
I put 'xrandr -s 1280x960' in my /etc/X11/xdm/Xsetup_0. It did not work at first. I did some tests and found something unexpected:
1) If I choose a lower resolution via xrandr (e.g. 800x600), when I quit a session (logout), the XDM screen is 800x600, even if I were using 1024x768 inside gnome.
2) If I choose higher resolution (as 1280x960, as I need), then XDM keeps using the lower resolution of the user (in this case 1024x768 from gnome prefs). The only way I found to put XDM in 1280x960 in this case was killing X with <CTRL><ALT><BKSPC>. It appears that xrandr only works if the resolution is becoming smaller.
However, if I log in as root, open a terminal and change the resolution via xrandr directly at the command prompt, it works 'on the fly' for almost any resolution from 320x200(!) up to 1280x960.
Very strange, isn't it?
As a workaround I'm considering changing the size of fonts and icons of gnome to make everything bigger and convince cila to use 1280x960 instead of 1024x760, even though the fonts inside applications (as AbiWord) will still appear small for her... I'm accepting other suggestions.
You should get more info about this, I don't know how to use it, but seems to be the place to "reset" your resolution.
From xdm man page:
Symmetrical with Xstartup, the Xreset script is run after the user session has terminated. Run as root, it should contain com_
mands that undo the effects of commands in Xstartup, removing entries from /etc/utmp or unmounting directories from file servers.
The environment variables that were passed to Xstartup are also passed to Xreset.
It seems i've just hit the way you can use the Xreset function. I was reading the man page here: http://linuxreviews.org/man/xdm/
When I saw there was a xdm-config file, in Slackware of course, it's located where it should be, as the man page said: /usr/X11R6/lib/X11/xdm/xdm-config
There it's where you can set Xreset (and others also), you can change the line: