Участник:Clint/Черновики3

Материал из Xgu.ru

Перейти к: навигация, поиск

Содержание

[править] software


clint:~$ nvidia-settings -v

nvidia-settings:  version 302.07  (buildmeister@swio-display-x86-rhel47-03.nvidia.com)  Fri Apr 27 12:00:41 PDT 2012
  The NVIDIA X Server Settings tool.

  This program is used to configure the NVIDIA Linux graphics driver.
  For more detail, please see the nvidia-settings(1) man page.

  Copyright (C) 2004 - 2010 NVIDIA Corporation.



clint:~$ X -version

X.Org X Server 1.11.3.901 (1.11.4 RC 1)
Release Date: 2012-01-06
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.32-5-amd64 i686 Debian
Current Operating System: Linux sergey 2.6.34-clint #3 SMP Sun Apr 10 18:12:28 EEST 2011 i686
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-2.6.34-clint root=UUID=164b3589-8a2f-4a7b-b5fb-103602080ce7 ro vmalloc=512m libata.force=3.0Gbps
Build Date: 19 January 2012  10:32:06AM
xorg-server 2:1.11.3.901-2 (Cyril Brulebois <kibi@debian.org>) 
Current version of pixman: 0.21.6
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.



[править] hardware

BIOS Settings

clint:~$ lspci | grep VGA
00:05.0 VGA compatible controller: nVidia Corporation C51G [GeForce 6100] (rev a2)
02:00.0 VGA compatible controller: nVidia Corporation GT218 [GeForce 210] (rev a2)


clint:~$ cat /proc/bus/input/devices  | egrep -i ^N.*"(keyboard|mouse|receiver)" -A 2 -B 1
I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/class/input/input0
--
I: Bus=0003 Vendor=046d Product=c52b Version=0111
N: Name="Logitech USB Receiver"
P: Phys=usb-0000:00:0b.0-3/input0
S: Sysfs=/class/input/input1
--
I: Bus=0003 Vendor=046d Product=c52b Version=0111
N: Name="Logitech USB Receiver"
P: Phys=usb-0000:00:0b.0-3/input1
S: Sysfs=/class/input/input2
--
I: Bus=0011 Vendor=0002 Product=0005 Version=0000
N: Name="ImPS/2 Generic Wheel Mouse"
P: Phys=isa0060/serio1/input0
S: Sysfs=/class/input/input6


clint:~$ lsusb
Bus 002 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

[править] xorg.conf


# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 285.05.09  (buildmeister@swio-display-x86-rhel47-02.nvidia.com)  Fri Sep 23 19:18:04 PDT 2011

# xorg.conf (X.Org 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 xorg.conf manual page.
# (Type "man 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 "ServerFlags"
#Option "IgnoreABI" "true"
#EndSection


Section "ServerLayout"

    Identifier     "Room"
    Screen          "Room_Screen" 0 0
    InputDevice    "Labtec_Mouse" "CoreKeyboard"
    InputDevice    "Labtec_Keyboard" "CorePointer"
    Option "AllowEmptyInput" "true"
    Option "AutoAddDevices" "false"
    Option "AutoEnableDevices" "false"
    Option       "DontZap" "Off"
EndSection

Section "ServerLayout"
    Identifier     "Kitchen"
    Screen        "Kitchen_Screen" 0 0
    InputDevice    "Logitech_K340" "CoreKeyboard"
    InputDevice    "Logitech_Mouse" "CorePointer"
       Option "AllowEmptyInput" "true"
       Option "AutoAddDevices" "false"
       Option "AutoEnableDevices" "false"
    Option       "DontZap" "Off"
EndSection

Section "Module"
    Load           "dbe"
    Load           "extmod"
#    Load           "type1"
    Load           "freetype"
    Load           "glx"
#    Load           "v4l"
    Load           "fbdevhw"
    Load           "record"
    Load           "type1"
EndSection

Section "InputDevice"
    Identifier     "Labtec_Keyboard"
    Driver         "evdev"
    Option         "Device" "/dev/input/event0"
    Option         "XkbRules" "xorg"
    Option         "XkbModel" "pc104"
    Option         "XkbLayout" "us,ru"
    Option         "XkbOptions" "grp_led:scroll,grp:ctrl_shift_toggle"
EndSection

Section "InputDevice"
    Identifier     "Logitech_K340"
    Driver         "evdev"
    Option         "Device" "/dev/MyLogitechKeyboard"
    Option         "XkbRules" "xorg"
    Option         "XkbModel" "pc104"
    Option         "XkbLayout" "us,ru"
    Option         "XkbOptions" "grp_led:scroll,grp:ctrl_shift_toggle"
EndSection

Section "InputDevice"
    Identifier     "Labtec_Mouse"
    Driver         "evdev"
    #Driver         "mouse"
    Option         "GrabDevice" "on"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/input/event6"
    #Option         "Device" "/dev/input/event7"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    Identifier     "Logitech_Mouse"
    Driver         "evdev"
    #Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/MyLogitechMouse"
    Option         "Emulate3Buttons" "no"
    Option         "GrabDevice" "on"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
    Identifier     "LG"
    VendorName     "Unknown"
    ModelName      "LG Electronics L1953S"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 75.0
EndSection

Section "Monitor"
    Identifier     "Samsung"
    VendorName     "Unknown"
    ModelName      "CRT-1"
    HorizSync       28.0 - 55.0
    VertRefresh     43.0 - 72.0
EndSection

Section "Device"
#Option "HWCursor" "off"
    Identifier     "Device1"
    #Driver         "vesa"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 210"
    BusID          "PCI:2:0:0"
   # Screen          0
EndSection

Section "Device"
# Option "HWCursor" "off"
    Identifier     "Device0"
#    Driver         "vesa"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 210"
    BusID          "PCI:0:5:0"
    #Screen          1
EndSection

Section "Screen"
    Identifier     "Kitchen_Screen"
    Device         "Device0"
    Monitor        "Samsung"
    DefaultDepth    24
    Option         "metamodes" "CRT-1: 800x600_75 +0+0"
    #Option         "metamodes" "CRT-1: 1024x768_60 +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Room_Screen"
    Device         "Device1"
    Monitor        "LG"
    DefaultDepth    24
    Option         "metamodes" "CRT-0: 1280x1024_75 +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

[править] udev


clint:~$ ls -l /etc/udev/rules.d/
итого 12
-rw-r--r-- 1 root root 788 Дек 19  2010 70-persistent-cd.rules
-rw-r--r-- 1 root root 813 Апр 11  2011 70-persistent-net.rules
-rw-r--r-- 1 root root 807 Мар  1 21:18 80-LogitechMY.rules



clint:~$ cat /etc/udev/rules.d/80-LogitechMY.rules 
ATTRS{name}=="Logitech USB Receiver", \
ATTRS{modalias}=="input:b0003v046DpC52Be0111-e0,1,2,3,4,k71,72,73,74,77,80,82,83,85,86,87,88,89,8A,8B,8C,8E,8F,90,96,98,9B,9C,9E,9F,A1,A3,A4,A5,A6,A7,A8,A9,AB,AC,AD,AE,B1,B2,B5,B6,CE,CF,D0,D1,D2,D5,D8,D9,DB,DF,E2,E7,E8,E9,EA,EB,100,110,111,112,113,114,115,116,117,118,119,11A,11B,11C,11D,11E,11F,162,166,16A,16E,178,179,17A,17B,17C,17D,17F,180,181,182,185,18C,18D,192,193,195,1A0,1A1,1A2,1A3,1A4,1A5,1A6,1A7,1A8,1A9,1AA,1AB,1AC,1AD,1AE,1B0,1B1,1B7,r0,1,6,7,8,a20,m4,lsfw", \
SYMLINK+="MyLogitechKeyboard"

ATTRS{name}=="Logitech USB Receiver", \
ATTRS{modalias}=="input:b0003v046DpC52Be0111-e0,1,4,11,14,k71,72,73,74,75,77,79,7A,7B,7C,7D,7E,7F,80,81,82,83,84,85,86,87,88,89,8A,B7,B8,B9,BA,BB,BC,BD,BE,BF,C0,C1,C2,F0,ram4,l0,1,2,3,4,sfw", \
SYMLINK+="MyLogitechMouse"

[править] xinit script

clint:~$ cat /home/clint/bin/myxinit 
#!/bin/bash
#xrdb /etc/X11/app-defaults/XTerm-color &
#sudo /sbin/iptables -I INPUT -p tcp -i eth1 --dport 6000 -j DROP
#sleep 10
sudo kill -9 $(ps aux | grep X | grep -v grep | awk '{print $2}')
sleep 2
sudo modprobe -r -v nvidia
#moved to local.rc
#sudo setkeycodes e006 254
#sudo setkeycodes e003 254
sleep 2
/usr/bin/X0 :0 -dpms -s off -nolisten tcp -layout Room -sharevts &
sleep 2
/usr/bin/X1 :1 -dpms -s off -nolisten tcp -layout Kitchen -sharevts &
sleep 2

exec dbus-launch xfce4-session --display :0 &
#fluxbox -display :0 &
#xhkeys -f ~/.XHkeys &
sleep 2


#fluxbox -display :1 &
lxsession  -d :1 &
sleep 2


xset -display :0 s off -dpms &
xset -display :1 s off -dpms &
xrandr --output  VGA-0 -display :1 --mode 800x600 &

sudo chvt 7 &

/usr/bin/x11vnc -noncache -localhost -forever -display :1 &