LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 01-10-2023, 05:18 AM   #1
hcgrant
Member
 
Registered: Feb 2004
Location: UK Hertfordshire
Distribution: Opensuse 15.3 leap plus RaspberryPi OS ,Vista and loadsa little Raspberry Pis
Posts: 57

Rep: Reputation: 15
xrandr modeline not present after reboot


Hi Im using a RPi4 as a second desktop.
Arandr doesn't show the max resolution my display is capable of (1280x1024)
Ive created a new modeline using xrandr/cvt and added that so that arandr successfully sets the new resolution.
However when I reboot the pi the new modeline is no longer present.

How can I 'save' the new modeline so that the pi will boot with the new resolution?

Ive added the following to re.local ..
xrandr --newmode "1280x1024_60.00" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync
xrandr --addmode HDMI-1 1280x1024_60.00
xrandr --output HDMI-1 --mode 1280x1024_60.00
this fails on boot but works if rc.local is run from a terminal. I would like this to happen at boot .

Any ideas?
 
Old 01-10-2023, 07:55 AM   #2
hcgrant
Member
 
Registered: Feb 2004
Location: UK Hertfordshire
Distribution: Opensuse 15.3 leap plus RaspberryPi OS ,Vista and loadsa little Raspberry Pis
Posts: 57

Original Poster
Rep: Reputation: 15
Smile

Sorted! I think
In /etc/X11/Xsession.d I've created a file 99set_res_1280_1024. The name I don't think is critical bar the "99".
The contents are ..
xrandr --newmode "1280x1024_60.00" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync
xrandr --addmode HDMI-1 1280x1024_60.00
xrandr --output HDMI-1 --mode 1280x1024_60.00
and that's it..
Ive booted the pi several times and each time it has the required resolution. :-)))
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
multipath devices not present after reboot. mariogarcia Linux - Server 3 06-13-2018 12:06 PM
[SOLVED] KDE's Power Manager Reports "Battery Not Present" But it's Definitely Present jlacroix Linux - Laptop and Netbook 5 09-11-2011 08:10 PM
radeon and dual head, to xrandr or not to xrandr, that's the question i92guboj Linux - Desktop 1 06-17-2009 05:48 AM
echo "blabla" in a script present present in /etc/rc.d/rc5.d/S96dinesh murugesan Linux - Newbie 3 04-14-2009 10:53 PM
wifi0 and ath0 device not present after reboot Gamock Mandriva 1 03-27-2008 11:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 04:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration