Choose style:

Author Topic: Lxrandr not saving settings  (Read 93 times)

0 Members and 1 Guest are viewing this topic.

Offline SandmanUT

  • Jr. Member
  • **
  • Posts: 25
  • Karma: 1
  • New Forum User
    • View Profile
  • Peppermint version(s): 7
Lxrandr not saving settings
« on: March 20, 2017, 02:26:46 pm »
I have a dual monitor setup with one capable of a higher resolution than the other. They are set to mirror, the higher resolution monitor keeps the setting from session to session (1280x720 @60) but the lower resolution monitor keeps defaulting to 1366x768@ 59.81.

This happens regardless of whether it's in position one or two on the machine video outputs and regardless of cable.

1280x720 @60 IS an option and displays properly (mostly..still some overscan) when selected in lxrandr and hitting apply, but even though I hit save, restart reverts right back to where it was before each and every time.  How can I force the resolution match and get it to stick every time it loads? The 1280x720 @ 60 is the resolution I want to aim at. (family room box, viewed at distance and serving up dvd quality movies, games, etc)


Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 14731
  • Karma: 1765
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 7 Respin (64bit)
Re: Lxrandr not saving settings
« Reply #1 on: March 20, 2017, 02:50:53 pm »
What's the output from:
Code: [Select]
cat ~/.config/autostart/lxrandr-autostart.desktop
?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
Linux in the UK

Offline SandmanUT

  • Jr. Member
  • **
  • Posts: 25
  • Karma: 1
  • New Forum User
    • View Profile
  • Peppermint version(s): 7
Re: Lxrandr not saving settings
« Reply #2 on: March 20, 2017, 05:48:32 pm »
Code: [Select]
[Desktop Entry]
Type=Application
Name=LXRandR autostart
Comment=Start xrandr with settings done in LXRandR
Exec=sh -c 'xrandr --output HDMI2 --mode 1280x720 --rate 60.00 --output HDMI1 --mode 1280x720 --same-as HDMI2'
OnlyShowIn=LXDE

So why isn't it applied? What's overriding it?

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 14731
  • Karma: 1765
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 7 Respin (64bit)
Re: Lxrandr not saving settings
« Reply #3 on: March 20, 2017, 08:13:06 pm »
It may be that it's getting run too early.

When you boot and everything is wrong .. does running:
Code: [Select]
xrandr --output HDMI2 --mode 1280x720 --rate 60.00 --output HDMI1 --mode 1280x720 --same-as HDMI2
fix things ?

Just trying to make sure that's the right command.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
Linux in the UK

Offline SandmanUT

  • Jr. Member
  • **
  • Posts: 25
  • Karma: 1
  • New Forum User
    • View Profile
  • Peppermint version(s): 7
Re: Lxrandr not saving settings
« Reply #4 on: March 21, 2017, 01:07:27 pm »
Yes. Running that from the terminal resets the overscanned monitor to the matching resolutions without using the GUI from preferences.  After that command, the monitor settings interface also display the matching settings.


Offline SandmanUT

  • Jr. Member
  • **
  • Posts: 25
  • Karma: 1
  • New Forum User
    • View Profile
  • Peppermint version(s): 7
Re: Lxrandr not saving settings
« Reply #5 on: March 22, 2017, 05:19:14 pm »
So how do I delay Xrandr in the startup so that it holds onto the set outputs instead of defaulting to whatever is causing the switch?