laptop external monitor

CS DBA cs_dba at consistentstate.com
Tue Oct 27 15:44:29 UTC 2015



On 10/27/2015 06:20 AM, Paul Cartwright wrote:
> I am running f22 on a Dell laptop. I have a 23" monitor plugged in and 
> I always use just the external monitor. Everytime I boot it reverts to 
> 1024 X 680 and I have to go to the dispay settings, uncheck the box 
> for both screens the same, turn off the laptop screen & set the 
> external monitor to 1920 X 1080.
> there is no xorg.conf file. Here is the xrandr outout:
>
> $ xrandr
> Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
> LVDS1 connected (normal left inverted right x axis y axis)
>    1280x800      59.91 +
>    1024x768      60.00
>    800x600       60.32    56.25
>    640x480       59.94
>    640x400       60.00
> TV1 disconnected (normal left inverted right x axis y axis)
> VGA1 connected primary 1920x1080+0+0 (normal left inverted right x 
> axis y axis) 510mm x 287mm
>    1920x1080     60.00*+
>    1280x1024     75.02    60.02
>    1152x864      75.00
>    1024x768      75.08    60.00
>    800x600       75.00    60.32
>    640x480       75.00    60.00
>    720x400       70.08
> VIRTUAL1 disconnected (normal left inverted right x axis y axis)
>
> how do I get this to boot into this mode everytime??


My previous laptop had a similar issue with Fedora 21, I solved it like 
this... I created a script named 99-xrandr.sh, placed it 
in/etc/X11/xinit/xinitrc.d and made it executable by all (owned by 
root), the script looked like this:

---------------------------------------------------------------------------
#!/bin/bash

/bin/xrandr --newmode "1600x900_60.00"  118.25  1600 1696 1856 2112 900 
903 908 934 -hsync +vsync
/bin/xrandr --addmode eDP1 1600x900_60.00
/bin/xrandr --output eDP1 --mode 1600x900_60.00

---------------------------------------------------------------------------


You would want to set it up to force VGA1 to be 1920x1080 like so:

-- run cvt to get the needed string
# cvt 1920 1080
Modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 
1120 -hsync +vsync

Then create your script:

#!/bin/bash

/bin/xrandr --newmode  "1920x1080_60.00"  173.00  1920 2048 2248 2576  
1080 1083 1088 1120 -hsync +vsync
/bin/xrandr --addmode VGA1 1920x1080_60.00
/bin/xrandr --output VGA1 --mode 1600x900_60.00



Not sure if this will work since your external monitor may not be 
connected at boot time, but worth a shot








More information about the users mailing list