[ltp] Re: Fglrx 8.28.8 promises Fn-F7 toggling. Anyone got it working?

Alfredo Matos linux-thinkpad@linux-thinkpad.org
Wed, 30 Aug 2006 11:06:09 +0100


When BigDesktop is enabled, X and gnome/gdm always think that there are
two screen.

What i've been trying to do since yesterday night was to detect screen
presence on X startup, and the set xrandr accordingly. That is, if only
one display (lvds) then set 1400x1050 (my native resolution), instead of
the 2800x1050 that it starts up with. But i haven't managed to do this,
since the Xsession scrips don't mind my xrandr (i think it's too soon to
run xrandr, not sure).

Also, another question: is there a way to autodetect the second monitor
? As in resolution, hsync, vrefresh values ? I can live with a sort of
options menu like the one presented on thinkwiki, but i rather have
autodetection :)

regards,

Alfredo Matos



David Abrahams wrote:
> Florian Manschwetus <florianmanschwetus@gmx.de> writes:
>
>   
>> Would be nice to have a look on xorg.conf witch enables changing
>> between clone and dualhead mode using fglrx.
>> florian
>>     
>
> Here's mine.  I switch modes dynamically by using xrandr to set the
> resolution.
>
>   
> ------------------------------------------------------------------------
>
>
> # /etc/X11/xorg.conf (xorg X Window System server configuration file)
> #
> # This file was generated by dexconf, the Debian X Configuration tool, using
> # values from the debconf database.
> #
> # Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
> # (Type "man /etc/X11/xorg.conf" at the shell prompt.)
> #
> # This file is automatically updated on xserver-xorg package upgrades *only*
> # if it has not been modified since the last upgrade of the xserver-xorg
> # package.
> #
> # If you have edited this file but would like it to be automatically updated
> # again, run the following command:
> #   sudo dpkg-reconfigure -phigh xserver-xorg
>
> Section "ServerLayout"
> 	Identifier     "Default Layout"
> 	Screen      0  "aticonfig-Screen[0]" 0 0
> 	InputDevice    "Generic Keyboard"
> 	InputDevice    "Configured Mouse"
> 	InputDevice    "stylus" "SendCoreEvents"
> 	InputDevice    "cursor" "SendCoreEvents"
> 	InputDevice    "eraser" "SendCoreEvents"
> 	InputDevice    "Synaptics Touchpad"
> EndSection
>
> Section "Files"
>
> 	# path to defoma fonts
> 	FontPath     "/usr/share/X11/fonts/misc"
> 	FontPath     "/usr/share/X11/fonts/cyrillic"
> 	FontPath     "/usr/share/X11/fonts/100dpi/:unscaled"
> 	FontPath     "/usr/share/X11/fonts/75dpi/:unscaled"
> 	FontPath     "/usr/share/X11/fonts/Type1"
> 	FontPath     "/usr/share/X11/fonts/100dpi"
> 	FontPath     "/usr/share/X11/fonts/75dpi"
> 	FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
> EndSection
>
> Section "Module"
> 	Load  "i2c"
> 	Load  "bitmap"
> 	Load  "ddc"
> 	Load  "dri"
> 	Load  "extmod"
> 	Load  "freetype"
> 	Load  "glx"
> 	Load  "int10"
> 	Load  "type1"
> 	Load  "vbe"
> EndSection
>
> Section "InputDevice"
> 	Identifier  "Generic Keyboard"
> 	Driver      "kbd"
> 	Option	    "CoreKeyboard"
> 	Option	    "XkbRules" "xorg"
> 	Option	    "XkbModel" "pc104"
> 	Option	    "XkbLayout" "us"
> EndSection
>
> Section "InputDevice"
> 	Identifier  "Configured Mouse"
> 	Driver      "mouse"
> 	Option	    "CorePointer"
> 	Option	    "Device" "/dev/input/mice"
> 	Option	    "Protocol" "ExplorerPS/2"
> 	Option	    "ZAxisMapping" "4 5"
> 	Option	    "Emulate3Buttons" "true"
> EndSection
>
> Section "InputDevice"
> 	Identifier  "Synaptics Touchpad"
> 	Driver      "synaptics"
> 	Option	    "SendCoreEvents" "true"
> 	Option	    "Device" "/dev/psaux"
> 	Option	    "Protocol" "auto-dev"
> 	Option	    "HorizScrollDelta" "0"
> 	Option	    "SHMConfig" "on"
> EndSection
>
> Section "InputDevice"
>
>                                                       # /dev/input/event
>                                                       # for USB
> 	Identifier  "stylus"
> 	Driver      "wacom"
> 	Option	    "Device" "/dev/wacom"          # Change to 
> 	Option	    "Type" "stylus"
> 	Option	    "ForceDevice" "ISDV4"               # Tablet PC ONLY
> EndSection
>
> Section "InputDevice"
>
>                                                       # /dev/input/event
>                                                       # for USB
> 	Identifier  "eraser"
> 	Driver      "wacom"
> 	Option	    "Device" "/dev/wacom"          # Change to 
> 	Option	    "Type" "eraser"
> 	Option	    "ForceDevice" "ISDV4"               # Tablet PC ONLY
> EndSection
>
> Section "InputDevice"
>
>                                                       # /dev/input/event
>                                                       # for USB
> 	Identifier  "cursor"
> 	Driver      "wacom"
> 	Option	    "Device" "/dev/wacom"          # Change to 
> 	Option	    "Type" "cursor"
> 	Option	    "ForceDevice" "ISDV4"               # Tablet PC ONLY
> EndSection
>
> Section "Monitor"
> 	Identifier   "aticonfig-Monitor[0]"
> 	Option	    "VendorName" "ATI Proprietary Driver"
> 	Option	    "ModelName" "Generic Autodetecting Monitor"
> 	Option	    "DPMS" "true"
> EndSection
>
> Section "Device"
> 	Identifier  "aticonfig-Device[0]"
> 	Driver      "fglrx"
> 	Option	    "VideoOverlay" "on"
> 	Option	    "OpenGLOverlay" "off"
> 	Option	    "EnableMonitor" "lvds"
> 	Option	    "DesktopSetup" "horizontal,reverse"
> EndSection
>
> Section "Screen"
> 	Identifier "aticonfig-Screen[0]"
> 	Device     "aticonfig-Device[0]"
> 	Monitor    "aticonfig-Monitor[0]"
> 	DefaultDepth     24
> 	SubSection "Display"
> 		Viewport   0 0
> 		Depth     24
> 	EndSubSection
> EndSection
>
> Section "DRI"
> 	Mode         0666
> EndSection
>
>   
> ------------------------------------------------------------------------
>
>
>