Thread: startup script works in .xprofile but not rc.local
how can work in rc.local?
rc.local
.xprofilecode:#!/bin/sh -e # # rc.local # # script executed @ end of each multiuser runlevel. # make sure script "exit 0" on success or other # value on error. # # in order enable or disable script change execution # bits. # # default script nothing. xrandr --newmode "1280x1024" 108.88 1280 1360 1496 1712 1024 1025 1028 1060 -hsync +vsync xrandr --addmode vga1 1280x1024 xrandr --output vga1 --mode 1280x1024 exit 0
xrandr rc.local (but not .xprofile)code:xrandr --newmode "1280x1024" 108.88 1280 1360 1496 1712 1024 1025 1028 1060 $ xrandr --addmode vga1 1280x1024 xrandr -s 1280x1024
xrandr .xprofilecode:xrandr screen 0: minimum 320 x 200, current 1024 x 768, maximum 4096 x 4096 lvds1 connected (normal left inverted right x axis y axis) 1024x768 60.0 + 800x600 60.3 56.2 640x480 59.9 vga1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm 1024x768 60.0* 800x600 60.3 56.2 848x480 60.0 640x480 59.9 dvi1 disconnected (normal left inverted right x axis y axis) tv1 unknown connection (normal left inverted right x axis y axis) 848x480 59.9 + 640x480 59.9 + 1024x768 59.9 800x600 59.9
code:xrandr screen 0: minimum 320 x 200, current 1280 x 1024, maximum 4096 x 4096 lvds1 connected (normal left inverted right x axis y axis) 1024x768 60.0 + 800x600 60.3 56.2 640x480 59.9 vga1 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 0mm x 0mm 1024x768 60.0 800x600 60.3 56.2 848x480 60.0 640x480 59.9 1280x1024 60.0* dvi1 disconnected (normal left inverted right x axis y axis) tv1 disconnected (normal left inverted right x axis y axis)code:ls -l etc/rc.local -rwxr-xr-x 1 root root 468 sep 26 10:01 etc/rc.local
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] startup script works in .xprofile but not rc.local
Ubuntu
Comments
Post a Comment