You are not logged in.

#1 2016-10-01 09:22:51

Skeleton_Robot
Member
Registered: 2016-10-01
Posts: 3

Screen resolution reset on startup (Xrandr, 10-monitor.conf)

Hello! i'm a new user in this forum, but i always read it for whatever problem i may have with Arch.

I switch from the Desktop Environments to Awesome WM and it's INCREDIBLE!!!
My problem is that i want to set the resolution for my monitor to 1360x768 instead of 1366x768  which it is the default.
I got it with the command:

xrandr --output VGA-1 --mode 1360x768

And works fine, but when i restart the PC, the resolution returns to 1366x768, due that this command is not persistent.
I made an 10-monitor.conf file and i put it in /etc/X11/xorg.conf.d but doesn't work when i restart.

What am I doing wrong?

The output of xrandr

Screen 0: minimum 320 x 200, current 1366 x 768, maximum 4096 x 4096
VGA-1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 410mm x 230mm
   1366x768      59.79*+
   1360x768      60.02
   1024x768      75.03    72.00    70.07    60.00
   832x624       74.55
   800x600       72.19    75.00    60.32    56.25
   640x480       75.00    72.81    66.67    59.94
   720x400       70.08

10-monitor.conf

Section "Monitor"
    Identifier "Monitor0"
    Option "PreferredMode" "1360x768_60.00"
EndSection

Section "Screen"
    Identifier "Screen0"
    Monitor "Monitor0"
    DefaultDepth 24
    SubSection "Display"
        Depth 24
        Modes "1360x768_60.00"
    EndSubSection
EndSection

Section "Device"
    Identifier "Device0"
    Driver "nouveau"
EndSection

Thanks in advice.

Offline

#2 2016-10-01 19:51:39

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: Screen resolution reset on startup (Xrandr, 10-monitor.conf)

Just out of sheer, morbid curiosity -- and no offence or anything intended -- why is 6 pixels such a big difference that you need for force that resolution?


Matt

"It is very difficult to educate the educated."

Offline

#3 2016-10-02 03:55:32

onslow77
Member
Registered: 2014-09-21
Posts: 283

Re: Screen resolution reset on startup (Xrandr, 10-monitor.conf)

Hello!

You have the wrong "Identifier" in your 10-monitor.conf file. The "Identifier" in your case should be: VGA-1. Assuming that is the name you got when you added the resolution.

Your 10-monitor.conf should look like this:

Section "Monitor"
    Identifier "VGA-1"
    Option "PreferredMode" "1360x768_60.00"
EndSection

Section "Screen"
    Identifier "Screen0"
    Monitor "VGA-1"
    DefaultDepth 24
    SubSection "Display"
        Depth 24
        Modes "1360x768_60.00"
    EndSubSection
EndSection

Section "Device"
    Identifier "Device0"
    Driver "nouveau"
EndSection

Regards
Martin

Last edited by onslow77 (2016-10-02 03:56:39)

Offline

#4 2016-10-03 09:05:23

Skeleton_Robot
Member
Registered: 2016-10-01
Posts: 3

Re: Screen resolution reset on startup (Xrandr, 10-monitor.conf)

mrunion wrote:

Just out of sheer, morbid curiosity -- and no offence or anything intended -- why is 6 pixels such a big difference that you need for force that resolution?

Hello! your question is no ofensive, i need these resolution because some icons and words are cut off in the right of the screen.

onslow77 Thanks! i'll try that.

Edit: Tested, and don't work...

Last edited by Skeleton_Robot (2016-10-03 09:16:56)

Offline

#5 2016-10-03 11:14:35

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Screen resolution reset on startup (Xrandr, 10-monitor.conf)

You can also just put the xrandr command in your xinitrc or other X startup file(s).


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2016-10-03 12:08:31

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,182

Re: Screen resolution reset on startup (Xrandr, 10-monitor.conf)

Skeleton_Robot wrote:

i need these resolution because some icons and words are cut off in the right of the screen.

Errr... what? What "some"?
I'd rather try to fix that instead.

Offline

#7 2016-10-03 12:28:54

headkase
Member
Registered: 2011-12-06
Posts: 2,008

Re: Screen resolution reset on startup (Xrandr, 10-monitor.conf)

seth wrote:
Skeleton_Robot wrote:

i need these resolution because some icons and words are cut off in the right of the screen.

Errr... what? What "some"?
I'd rather try to fix that instead.

It is a limitation of the video hardware.  1360x768 is a multiple of 8 in the horizontal dimension while 1366 is not.  A common issue. Depending on your actual graphics card it sometimes is an issue and sometimes isn't.

Offline

#8 2016-10-03 14:06:56

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Screen resolution reset on startup (Xrandr, 10-monitor.conf)

I don't know which hardware you are using but from the resolution my guess would be a laptop. Setting a resolution different from the native one you will probably result in a blurry image, if that is the case you might want to search for alternative solutions.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

Board footer

Powered by FluxBB