You are not logged in.

#1 2010-10-13 12:45:15

gonX
Member
From: Denmark
Registered: 2009-08-16
Posts: 112

Setting monitor resolution in the login manager, before session launch

Hey guys,

I want to have SLiM set the resolution to "auto" once it boots. At the moment, it seems like it boots directly into 800x600, and not into my native resolution, 1366x768. Sometimes I have an external monitor connected as well, and it's a good deal larger.
I was thinking it would be possible to run "xrandr --auto" which does this for me, but I am unable to see how exactly this is done through SLiM.
If it becomes necessary, I'm willing to change login manager to something else. gdm, xdm, kdm, you name it.

Thanks,
gonX


since 2009

Offline

#2 2010-10-14 01:04:52

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: Setting monitor resolution in the login manager, before session launch

You can set up commands to be run on login in your ~/.xsession file.

In order to run your command, all you would need to do is to make the file if it doesn't exist, and put in your command with the & at the end:

xrandr --auto &

Should work.   Not sure how slim would interact with the ~/.xsession file.  If X starts and it immediately goes back to the login screen, then the xsession file would be overriding your choice of window manager, and when that file exits, so does X.

HTH


Knute

Offline

#3 2010-10-14 09:16:09

gonX
Member
From: Denmark
Registered: 2009-08-16
Posts: 112

Re: Setting monitor resolution in the login manager, before session launch

Hey Knute,

Thanks a lot for trying to help, but unfortunately what I wanted it to fix the resolution while I am logging in. It's no big deal, but I can't imagine it not being possible.
When I log in, the resolution already sets itself perfectly fine, but during the log in process it's something really small (or big depending on how you look at it).
I see that it isn't very clear from the OP as it is right now yikes

I hope this clears up what I meant.

Thanks,
gonX


since 2009

Offline

#4 2010-10-14 12:18:26

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: Setting monitor resolution in the login manager, before session launch

Are you using a /etc/X11/xorg.conf file?

If not,  then you may want to try setting up a basic one with settings for your video card, monitor, and screen that includes the resolution that you want slim to use.

Before XRandR, it was set up in the xorg.conf file.

Though, now that I think about it, if it's an issue with size of the fonts, I think that you can adjust that in the slim theme.   I don't use slim or any login manager.
I find that it's easier for me to log in via the console and startx manually.  That way if I break my X....  smile    It's happened.  lol

Anyway, HTH


Knute

Offline

#5 2010-10-14 12:30:43

gonX
Member
From: Denmark
Registered: 2009-08-16
Posts: 112

Re: Setting monitor resolution in the login manager, before session launch

I had thought of that as well, but the real problem is that the resolution isn't always the same. Sometimes I might be hooked up to an external monitor that does 2048x1152, and sometimes to a monitor that only does 1680x1050. And other times I'll just be using my integrated laptop display, which runs at 1366x768.

It's a problem with the resolution, and not the fonts - good call, though.


since 2009

Offline

#6 2012-06-13 02:27:52

marco_silva85
Member
Registered: 2012-06-13
Posts: 12

Re: Setting monitor resolution in the login manager, before session launch

Sorry for digging up, but does anyone knows the answer to this problem?
I am experiencing the same with Slim:
* When I'm using my default laptop monitor, Slim's resolution is the monitor's native but,
* When I'm using my external monitor (through hdmi), Slim's resolution isn't the native.
Thanks

Last edited by marco_silva85 (2012-06-13 02:32:26)

Offline

#7 2012-06-13 09:15:19

desaparecido
Member
From: Liège, Belgium
Registered: 2010-03-14
Posts: 155

Re: Setting monitor resolution in the login manager, before session launch

@marco_silva85 hi in my case with Samsung TV and HDMI port, in my /etc/X11/xorg.conf I have this:

Section "Monitor"

    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "SAMSUNG"
    HorizSync       15.0 - 46.0
    VertRefresh     50.0 - 61.0
    Option         "DPMS" "FALSE"
    Option         "UseEdidDpi" "FALSE"
    Option         "DPI" "96 x 96"
EndSection

where is the Option "UseEdidDpi" "FALSE" than define to use or not the DPI automatically (in my case automatically choice 120x120) and the next line you can define it manually

Last edited by desaparecido (2012-06-13 09:17:00)


KF5 & Plasma5 (git versions) - Awesome WM
ASUS Sabertooth 990FX - AMD FX8350 - ATI Radeon HD 7970
[testing] repo

Offline

#8 2012-06-13 15:26:12

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Setting monitor resolution in the login manager, before session launch

marco_silva85 wrote:

Sorry for digging up

No. Don't

Start a new thread and link to this one if relevant.

Closing...


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB