You are not logged in.
Pages: 1
Topic closed
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
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
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 ![]()
I hope this clears up what I meant.
Thanks,
gonX
since 2009
Offline
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....
It's happened. ![]()
Anyway, HTH
Knute
Offline
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
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
@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"
EndSectionwhere 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
Sorry for digging up
No. Don't
Start a new thread and link to this one if relevant.
Closing...
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
Pages: 1
Topic closed