msea
Member
Posts: 18
Likes: 10
|
Post by msea on Feb 23, 2021 4:12:49 GMT
A while ago I found a web page that specified a folder to place a script for custom monitor resolution at startup. It worked well. But I lost the bookmarked page and cannot find it again.
What folder do I put this script in within Bodhi Linux (set_monitor.sh)?
Thanks.
|
|
msea
Member
Posts: 18
Likes: 10
|
Post by msea on Feb 23, 2021 17:34:17 GMT
Just in case anyone else is interested in this, I found the solution. The folder is
/etc/profile.d
So now my custom resolution appears at startup.
|
|
enigma9o7
Crew Member
Posts: 1,427
Likes: 1,336
|
Post by enigma9o7 on Feb 23, 2021 17:36:44 GMT
If that works, great! However, the place arandr sets it for moksha is .e/e/startup/applications/startupcommands in your user folder.... so not set for all users like your example but doesnt require root...
If you use the "Moksha" save in arandr, it puts an xrandr command in that file. And if you change things it changes it. So, by you having it in another file, if you saved it with arandr, not sure which script runs first but I dont think it would know to remove what you put in
|
|
msea
Member
Posts: 18
Likes: 10
|
Post by msea on Feb 23, 2021 20:53:22 GMT
Thanks this is an old monitor so arandr did not have that resolution as an option at the outset. After just doing the quick fix (with correct modeline)...
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync xrandr --addmode VGA1 1920x1080_60.00 xrandr --output VGA1 --mode 1920x1080_60.00
I tried to "Save As" in arandr and, if I remember right, also set it as a Moksha startup script. But for me it didn't work. I thought perhaps because the monitor is so old??
Perhaps now that I've figured out a workable solution, I may try what you're saying once again. Just to see... 😀
|
|
msea
Member
Posts: 18
Likes: 10
|
Post by msea on Feb 24, 2021 6:21:13 GMT
If that works, great! However, the place arandr sets it for moksha is .e/e/startup/applications/startupcommands in your user folder.... so not set for all users like your example but doesnt require root... If you use the "Moksha" save in arandr, it puts an xrandr command in that file. And if you change things it changes it. So, by you having it in another file, if you saved it with arandr, not sure which script runs first but I dont think it would know to remove what you put in I copied the contents of the script into /home/bodhi/.e/e/applications/startup/startupcommands and it works without having to worry about root... so no need for nautillus. Thank you so much! Great solution. 👍
|
|