Fórum Ubuntu CZ/SK
Ostatní => Archiv => Téma založeno: zerg 09 Února 2007, 21:07:45
-
ahojte, mam takový problem, mam na PC dva monitory, a mám nastavene, aby se mi spouštěly nejake programy při přihlašení. jak si nastavim na kterem monitoru se to má spouštět? me se to vždycky všechno spustí na jednom. v čem může být chyba? tady je muj výpis /etc/X11/xorc.conf: předem děkuju za vaše rady.
Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "aticonfig-Screen[0]" 0 0
Screen 1 "aticonfig-Screen[1]" LeftOf "aticonfig-Screen[0]"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
# InputDevice "stylus" "SendCoreEvents"
# InputDevice "cursor" "SendCoreEvents"
# InputDevice "eraser" "SendCoreEvents"
EndSection
Section "Monitor"
Identifier "TV-2004"
Option "DPMS"
EndSection
Section "Monitor"
Identifier "aticonfig-Monitor[0]"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection
Section "Monitor"
Identifier "aticonfig-Monitor[1]"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection
Section "Device"
Identifier "ATI Technologies, Inc. RV350 AR [Radeon 9600 XT]"
Driver "ati"
BusID "PCI:1:0:0"
EndSection
Section "Device"
Identifier "aticonfig-Device[0]"
Driver "fglrx"
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
Option "DesktopSetup" "horizontal"
Option "OverlayOnCRTC2" "1"
BusID "PCI:1:0:0"
EndSection
Section "Device"
Identifier "aticonfig-Device[1]"
Driver "fglrx"
BusID "PCI:1:0:0"
Screen 1
EndSection
Section "Screen"
Identifier "Default Screen"
Device "ATI Technologies, Inc. RV350 AR [Radeon 9600 XT]"
Monitor "TV-2004"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
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 "Screen"
Identifier "aticonfig-Screen[1]"
Device "aticonfig-Device[1]"
Monitor "aticonfig-Monitor[1]"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
-
moc nechápu tu otázku. a zobrazení na dva monitory tedy funguje? moc se mi ten xorg.conf nezdá. proč tam máte 3x monitor a 3x screen?
-
kdyz shrnu cely vas xorg.conf, tak mohl by vypadat nasledovne:
Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "aticonfig-Screen[0]" 0 0
Screen 1 "aticonfig-Screen[1]" LeftOf "aticonfig-Screen[0]"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
EndSection
Section "Monitor"
Identifier "aticonfig-Monitor[0]"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection
Section "Monitor"
Identifier "aticonfig-Monitor[1]"
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 "DesktopSetup" "horizontal"
Option "OverlayOnCRTC2" "1"
BusID "PCI:1:0:0"
EndSection
Section "Device"
Identifier "aticonfig-Device[1]"
Driver "fglrx"
BusID "PCI:1:0:0"
Screen 1
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 "Screen"
Identifier "aticonfig-Screen[1]"
Device "aticonfig-Device[1]"
Monitor "aticonfig-Monitor[1]"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSectionAle vzhledem k tomu, ze mam nVidia gk a vystup na jeden monitor, nemam zadne zkusenosti z teto oblasti.
-
no ten xorg.conf soubor uz sem spravil. ja su teprv linuxovy zacatecnik, moc sa v nem este neorientuju, ale za ty dva mesice co ho mam nainstalovany jsem leccos pochopil. ale ten problem co mam ted, zkusim nejak jednoduse popsat. no proste mam dva monitory. no chci spoustet gdesklets shell hned po prihlaseni. to sem si nastavil, ale vzdycky se mi spusti na monotoru0 a chtel bych, aby se mi spoustel na monitoru1. a nevim jak to nastavit. jo a este bych chtel, aby se mi spoustely jenom ty utilitky co sem si nastavil a ne aj okno s nastavenim apletku. diky
-
to na které obrazovce se aplikace spustí určuje proměnná X serveru DISPLAY . Aplikaci na monitoru1 (screen1) pustíte tak, že před příkaz, kterým ji spouštíte napíšete DISPLAY=:0.1 . tedy například film do televize (nebo druhého monitoru) pustíte z primárního monitoru takhle:
DISPLAY=:0.1 kaffeine -f /home/video/film.avi
předpokládám že stejně půjdou spustit věci po startu.
-
no zkousel jsem to pres ten display=:0.1 ale nefunguje to, v terminalu ano, ale kdyz to zadam aby se to spoustelo po prihlaseni tak ne.
-
v terminalu ano, ale kdyz to zadam aby se to spoustelo po prihlaseni tak ne.
A jak zadate, aby se to spoustelo po prihlaseni?
-
system ---- volby ----- sezeni ----- programy po prihlaseni
-
Gnome moc neznam, ale tak si vytvor skript
$ touch /nejaky_adresar/skript.sh
$ chmod +x /nejaky_adresar/skript.sh
$ gedit /nejaky_adresar/skript.shdo ktereho uloz mimo jine prikaz, ktery to bude volat tak, jak ma (i s tou promennou na zacatku); dejme tomu:
#!/bin/bash
DISPLAY=:0.1 kaffeine -f /home/video/film.avi &a pak tam nastav po spousteni tento skript. Jo a doporucuju nezapomenout na ten ampersand "&" na konci za prikazem.
-
diky diky moc, ten skript me moc pomohl. diky, ja v Linuxu teprv zacinam, tak sa v tom moc nevyznam, ale moc dik toto me pomohlo. diky