gdm和lightdm的设置问题,求大神!

各种窗口管理器和美化相关
回复
lyh33001
帖子: 6
注册时间: 2015-08-21 10:48

gdm和lightdm的设置问题,求大神!

#1

帖子 lyh33001 » 2015-08-21 10:53

我在ubuntu14.04下装IC610出错,网上说要在/etc/X11/xorg.conf内加入一串代码:
Section "Extensions"
Option "Composite" "Disable"
EndSection

但是ubuntu14.04没有使用gdm,找不到xorg.conf,请问我该如何在lightdm中完成上述操作? :em70 :em70 :em70 :em70 :em70 :em70
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: gdm和lightdm的设置问题,求大神!

#2

帖子 poloshiao » 2015-08-21 11:44

但是ubuntu14.04没有使用gdm,找不到xorg.conf
1. http://askubuntu.com/a/159670
1-1. press CTRL + ALT + F1 to access the tty1
1-2. sudo stop lightdm

sudo service lightdm stop
1-3. sudo dpkg-reconfigure xserver-xorg

sudo X -configure
1-4. 看看 有沒有 產生 /etc/X11/xorg.conf
sudo ls -al /etc/X11 | grep xorg.conf
1-5. 如果有 /etc/X11/xorg.conf
在動手編輯以前 先備份一份 萬一編輯不理想 隨時可以覆蓋恢復
sudo cp -a /etc/X11/xorg.conf /etc/X11/xorg.conf.backup

2. 編輯 /etc/X11/xorg.conf 完畢
sudo start lightdm

sudo service lightdm start
lyh33001
帖子: 6
注册时间: 2015-08-21 10:48

Re: gdm和lightdm的设置问题,求大神!

#3

帖子 lyh33001 » 2015-08-21 12:32

poloshiao 写了:
但是ubuntu14.04没有使用gdm,找不到xorg.conf
1. http://askubuntu.com/a/159670
1-1. press CTRL + ALT + F1 to access the tty1
1-2. sudo stop lightdm

sudo service lightdm stop
1-3. sudo dpkg-reconfigure xserver-xorg

sudo X -configure
1-4. 看看 有沒有 產生 /etc/X11/xorg.conf
sudo ls -al /etc/X11 | grep xorg.conf
1-5. 如果有 /etc/X11/xorg.conf
在動手編輯以前 先備份一份 萬一編輯不理想 隨時可以覆蓋恢復
sudo cp -a /etc/X11/xorg.conf /etc/X11/xorg.conf.backup

2. 編輯 /etc/X11/xorg.conf 完畢
sudo start lightdm

sudo service lightdm start
感谢大神的指导,按照上述操作,出现了xorg.conf.new,但是不是在etc下,而是在/home/lyh1307下,我改了xorg.conf.new,但是依然没有效果,我的错误还是存在~就像下面的错误提示一样,求大神帮我分析一下
\e request 2 error 3 serial 1746
\e Display :0 Error "BadWindow (invalid Window parameter)"
\e request 18 error 3 serial 1747
\e Display :0 Error "BadWindow (invalid Window parameter)"
\e request 18 error 3 serial 1748
\e Display :0 Error "BadWindow (invalid Window parameter)"
\e request 18 error 3 serial 1749
\e Display :0 Error "BadWindow (invalid Window parameter)"
\e request 18 error 3 serial 1750
\e Display :0 Error "BadWindow (invalid Window parameter)"
\e request 12 error 3 serial 1751
\e Display :0 Error "BadWindow (invalid Window parameter)"
\e request 12 error 3 serial 1752
\e Display :0 Error "BadMatch (invalid parameter attributes)"
\e request 62 error 8 serial 1762
\e Display :0 Error "BadWindow (invalid Window parameter)"
\e request 20 error 3 serial 1763
\e Display :0 Error "BadWindow (invalid Window parameter)"
\e request 18 error 3 serial 1765
\e Display :0 Error "BadWindow (invalid Window parameter)"
\e request 18 error 3 serial 1772
lyh33001
帖子: 6
注册时间: 2015-08-21 10:48

Re: gdm和lightdm的设置问题,求大神!

#4

帖子 lyh33001 » 2015-08-21 12:42

poloshiao 写了:
但是ubuntu14.04没有使用gdm,找不到xorg.conf
1. http://askubuntu.com/a/159670
1-1. press CTRL + ALT + F1 to access the tty1
1-2. sudo stop lightdm

sudo service lightdm stop
1-3. sudo dpkg-reconfigure xserver-xorg

sudo X -configure
1-4. 看看 有沒有 產生 /etc/X11/xorg.conf
sudo ls -al /etc/X11 | grep xorg.conf
1-5. 如果有 /etc/X11/xorg.conf
在動手編輯以前 先備份一份 萬一編輯不理想 隨時可以覆蓋恢復
sudo cp -a /etc/X11/xorg.conf /etc/X11/xorg.conf.backup

2. 編輯 /etc/X11/xorg.conf 完畢
sudo start lightdm

sudo service lightdm start

感谢 poloshiao大神的指导,按照上述操作在 /etc/X11/下并没有出现xorg.conf,但是在我的用户目录/home/lyh1307下出现了 xorg.conf.new,我修改了这个文件,但是问题依然没有解决,启动软件时还是出现如下的错误:
\e Display :0 Error "BadWindow (invalid Window parameter)"
\e request 12 error 3 serial 1734
\e Display :0 Error "BadWindow (invalid Window parameter)"
\e request 12 error 3 serial 1735
\e Display :0 Error "BadWindow (invalid Window parameter)"
\e request 12 error 3 serial 1736
\e Display :0 Error "BadWindow (invalid Window parameter)"
\e request 12 error 3 serial 1737
\e Display :0 Error "BadWindow (invalid Window parameter)"
\e request 12 error 3 serial 1738
\e Display :0 Error "BadWindow (invalid Window parameter)"
\e request 12 error 3 serial 1739
\e Display :0 Error "BadWindow (invalid Window parameter)"
\e request 12 error 3 serial 1740
\e Display :0 Error "BadWindow (invalid Window parameter)"
\e request 12 error 3 serial 1741
\e Display :0 Error "BadWindow (invalid Window parameter)"
\e request 12 error 3 serial 1742
\e Display :0 Error "BadWindow (invalid Window parameter)"
\e request 12 error 3 serial 1743
\e Display :0 Error "BadWindow (invalid Window parameter)"
\e request 12 error 3 serial 1744
\e Display :0 Error "BadWindow (invalid Window parameter)"
\e request 12 error 3 serial 1745
\e Display :0 Error "BadWindow (invalid Window parameter)"
\e request 2 error 3 serial 1746
\e Display :0 Error "BadWindow (invalid Window parameter)"
\e request 18 error 3 serial 1747
\e Display :0 Error "BadWindow (invalid Window parameter)"
\e request 18 error 3 serial 1748
\e Display :0 Error "BadWindow (invalid Window parameter)"
\e request 18 error 3 serial 1749
\e Display :0 Error "BadWindow (invalid Window parameter)"
\e request 18 error 3 serial 1750
\e Display :0 Error "BadWindow (invalid Window parameter)"
\e request 12 error 3 serial 1751
\e Display :0 Error "BadWindow (invalid Window parameter)"
\e request 12 error 3 serial 1752
\e Display :0 Error "BadMatch (invalid parameter attributes)"
\e request 62 error 8 serial 1762
\e Display :0 Error "BadWindow (invalid Window parameter)"
\e request 20 error 3 serial 1763
\e Display :0 Error "BadWindow (invalid Window parameter)"
\e request 18 error 3 serial 1765
\e Display :0 Error "BadWindow (invalid Window parameter)"
\e request 18 error 3 serial 1772

求大神帮忙分析下 :em70 :em70 :em70 :em70
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: gdm和lightdm的设置问题,求大神!

#5

帖子 poloshiao » 2015-08-22 5:03

按照上述操作在 /etc/X11/下并没有出现xorg.conf,但是在我的用户目录/home/lyh1307下出现了 xorg.conf.new
sudo dpkg-reconfigure xserver-xorg
1. 一定要在 tty1 執行 把 tty7 關閉
2. 一定要加 sudo
3. 如果有錯誤訊息 把錯誤訊息貼上來
4. 是不是 nvidia 顯卡 ?
lyh33001
帖子: 6
注册时间: 2015-08-21 10:48

Re: gdm和lightdm的设置问题,求大神!

#6

帖子 lyh33001 » 2015-08-23 2:00

poloshiao 写了:
按照上述操作在 /etc/X11/下并没有出现xorg.conf,但是在我的用户目录/home/lyh1307下出现了 xorg.conf.new
sudo dpkg-reconfigure xserver-xorg
1. 一定要在 tty1 執行 把 tty7 關閉
2. 一定要加 sudo
3. 如果有錯誤訊息 把錯誤訊息貼上來
4. 是不是 nvidia 顯卡 ?
一、我之前用的是ubuntu14.04(用的是lightdm),这两天我用ubuntu10.04(用的是gdm)试了下,按照下列操作:
1. Ctrl+Alt+F1 , sudo service gdm stop
2. sudo Xorg -configure (生成文件 ~/xorg.conf.new)
3. sudo service gdm start
4. mv ~/xorg.conf.new /etc/X11/xorg.conf
5. gtf 1280 1024 60 -x
6. 然后将上一步中gtf命令生成的内容:
Modeline "1280x1024_60.00" 108.88 1280 1360 1496 1712 1024 1025 1028 1060 -HSync +Vsync
插入到/etc/X11/xorg.conf中:
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
Modeline "1280x1024_60.00" 108.88 1280 1360 1496 1712 1024 1025 1028 1060 -HSync +Vsync
EndSection

再末尾加入
Section "Extensions"
Option "Composite" "Disable"
EndSection
重新启动。然后运行我的软件,就可以正常启动了,没有任何错误。


二、在unbuntu14.04中,我把上述流程中的gdm全换成了ligntdm,一切也都没有报错,但是给xorg.conf末尾加入
Section "Extensions"
Option "Composite" "Disable"
EndSection
之前,系统可以正常启动,且运行良好。
但是加入这三行程序之后,重启,可以到登陆界面,输入密码后,并没有看到桌面,大概10秒后又自动回到了登陆界面,如此往复,卡在了登陆界面,就是进不去系统。

我的是nvdia 960显卡,感谢大神的耐心指导~我想知道Option "Composite" "Disable" 这个是做什么的啊,为什么对gdm系统影响不大,但是却能阻止lightdm系统的启动呢?求大神再帮我看下 :em70 :em70 :em70 :em70

请问Option "Composite" "Disable" 这句程序是做什么的啊?为什么在gdm下可以正常工作,在lightdm下就不行了呢?求大神
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: gdm和lightdm的设置问题,求大神!

#7

帖子 poloshiao » 2015-08-23 4:58

我的是 nvdia 960显卡
1. 把下面指令 複製 貼進終端機 執行
1-1. uname -r
1-2. sudo lspci -knn
1-3. sudo lshw -numeric -class video
1-4. sudo ubuntu-drivers devices
把結果直接 選取/複製 貼上來

2. 目的 要看看你是否安裝合適的顯卡驅動
可能會影響 xorg.conf
http://www.nvidia.com/download/driverRe ... 1252/en-us
Updated nvidia-installer to install a file in the system's xorg.conf.d directory, when a sufficiently new X server is detected, to cause the X server to load the "nvidia" X driver automatically if it is started after the NVIDIA kernel module is loaded.
This feature is supported in X.Org xserver 1.16 and higher when running on Linux 3.9 or higher with CONFIG_DRM enabled.
lyh33001
帖子: 6
注册时间: 2015-08-21 10:48

Re: gdm和lightdm的设置问题,求大神!

#8

帖子 lyh33001 » 2015-08-24 12:48

poloshiao 写了:
我的是 nvdia 960显卡
1. 把下面指令 複製 貼進終端機 執行
1-1. uname -r
1-2. sudo lspci -knn
1-3. sudo lshw -numeric -class video
1-4. sudo ubuntu-drivers devices
把結果直接 選取/複製 貼上來

2. 目的 要看看你是否安裝合適的顯卡驅動
可能會影響 xorg.conf
http://www.nvidia.com/download/driverRe ... 1252/en-us
Updated nvidia-installer to install a file in the system's xorg.conf.d directory, when a sufficiently new X server is detected, to cause the X server to load the "nvidia" X driver automatically if it is started after the NVIDIA kernel module is loaded.
This feature is supported in X.Org xserver 1.16 and higher when running on Linux 3.9 or higher with CONFIG_DRM enabled.


lyh1307@lyhhost:~/桌面$ uname -r
3.16.0-30-generic
lyh1307@lyhhost:~/桌面$ sudo lspci -knn
[sudo] password for lyh1307:
00:00.0 Host bridge [0600]: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge [8086:7190] (rev 01)
Subsystem: VMware Virtual Machine Chipset [15ad:1976]
Kernel driver in use: agpgart-intel
00:01.0 PCI bridge [0604]: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge [8086:7191] (rev 01)
00:07.0 ISA bridge [0601]: Intel Corporation 82371AB/EB/MB PIIX4 ISA [8086:7110] (rev 08)
Subsystem: VMware Virtual Machine Chipset [15ad:1976]
00:07.1 IDE interface [0101]: Intel Corporation 82371AB/EB/MB PIIX4 IDE [8086:7111] (rev 01)
Subsystem: VMware Virtual Machine Chipset [15ad:1976]
Kernel driver in use: ata_piix
00:07.3 Bridge [0680]: Intel Corporation 82371AB/EB/MB PIIX4 ACPI [8086:7113] (rev 08)
Subsystem: VMware Virtual Machine Chipset [15ad:1976]
00:07.7 System peripheral [0880]: VMware Virtual Machine Communication Interface [15ad:0740] (rev 10)
Subsystem: VMware Virtual Machine Communication Interface [15ad:0740]
Kernel driver in use: vmw_vmci
00:0f.0 VGA compatible controller [0300]: VMware SVGA II Adapter [15ad:0405]
Subsystem: VMware SVGA II Adapter [15ad:0405]
Kernel driver in use: vmwgfx
00:10.0 SCSI storage controller [0100]: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI [1000:0030] (rev 01)
Subsystem: VMware LSI Logic Parallel SCSI Controller [15ad:1976]
Kernel driver in use: mptspi
00:11.0 PCI bridge [0604]: VMware PCI bridge [15ad:0790] (rev 02)
00:15.0 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
Kernel driver in use: pcieport
00:15.1 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
Kernel driver in use: pcieport
00:15.2 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
Kernel driver in use: pcieport
00:15.3 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
Kernel driver in use: pcieport
00:15.4 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
Kernel driver in use: pcieport
00:15.5 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
Kernel driver in use: pcieport
00:15.6 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
Kernel driver in use: pcieport
00:15.7 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
Kernel driver in use: pcieport
00:16.0 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
Kernel driver in use: pcieport
00:16.1 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
Kernel driver in use: pcieport
00:16.2 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
Kernel driver in use: pcieport
00:16.3 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
Kernel driver in use: pcieport
00:16.4 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
Kernel driver in use: pcieport
00:16.5 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
Kernel driver in use: pcieport
00:16.6 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
Kernel driver in use: pcieport
00:16.7 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
Kernel driver in use: pcieport
00:17.0 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
Kernel driver in use: pcieport
00:17.1 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
Kernel driver in use: pcieport
00:17.2 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
Kernel driver in use: pcieport
00:17.3 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
Kernel driver in use: pcieport
00:17.4 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
Kernel driver in use: pcieport
00:17.5 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
Kernel driver in use: pcieport
00:17.6 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
Kernel driver in use: pcieport
00:17.7 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
Kernel driver in use: pcieport
00:18.0 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
Kernel driver in use: pcieport
00:18.1 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
Kernel driver in use: pcieport
00:18.2 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
Kernel driver in use: pcieport
00:18.3 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
Kernel driver in use: pcieport
00:18.4 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
Kernel driver in use: pcieport
00:18.5 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
Kernel driver in use: pcieport
00:18.6 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
Kernel driver in use: pcieport
00:18.7 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
Kernel driver in use: pcieport
02:00.0 USB controller [0c03]: VMware USB1.1 UHCI Controller [15ad:0774]
Subsystem: VMware Device [15ad:1976]
Kernel driver in use: uhci_hcd
02:01.0 Ethernet controller [0200]: Advanced Micro Devices, Inc. [AMD] 79c970 [PCnet32 LANCE] [1022:2000] (rev 10)
Subsystem: Advanced Micro Devices, Inc. [AMD] PCnet - Fast 79C971 [1022:2000]
Kernel driver in use: pcnet32
02:02.0 Multimedia audio controller [0401]: Ensoniq ES1371 / Creative Labs CT2518 [AudioPCI-97] [1274:1371] (rev 02)
Subsystem: Ensoniq AudioPCI 64V/128 / Creative Sound Blaster CT4810 [1274:1371]
Kernel driver in use: snd_ens1371
02:03.0 USB controller [0c03]: VMware USB2 EHCI Controller [15ad:0770]
Subsystem: VMware USB2 EHCI Controller [15ad:0770]
Kernel driver in use: ehci-pci
02:05.0 SATA controller [0106]: VMware SATA AHCI controller [15ad:07e0]
Subsystem: VMware SATA AHCI controller [15ad:07e0]
Kernel driver in use: ahci
lyh1307@lyhhost:~/桌面$ sudo lshw -numeric -class video
*-display
description: VGA compatible controller
product: SVGA II Adapter [15AD:405]
vendor: VMware [15AD]
physical id: f
bus info: pci@0000:00:0f.0
version: 00
width: 32 bits
clock: 33MHz
capabilities: vga_controller bus_master cap_list rom
configuration: driver=vmwgfx latency=64
resources: irq:16 ioport:1070(size=16) memory:e8000000-efffffff memory:fe000000-fe7fffff memory:c0000000-c0007fff
lyh1307@lyhhost:~/桌面$ sudo ubuntu-drivers devices
lyh1307@lyhhost:~/桌面$
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: gdm和lightdm的设置问题,求大神!

#9

帖子 poloshiao » 2015-08-24 13:38

*-display
description: VGA compatible controller
product: SVGA II Adapter [15AD:405]
vendor: VMware [15AD]
configuration: driver=vmwgfx latency=64
1. 你的 ubuntu 10.04 是安裝在 VMware 的 Guest ?
sudo Xorg -configure (生成文件 ~/xorg.conf.new)
2. 這個指令 是否適用 有一些問題待討論
http://manpages.ubuntu.com/manpages/luc ... org.1.html
2-1. PLATFORMS
Xorg operates under a wide range of operating systems and hardware platforms. The Intel x86 (IA32) architecture is the most widely supported hardware platform. Other hardware platforms include Compaq Alpha, Intel IA64, AMD64, SPARC and PowerPC.
沒有看到 對於 VMware 虛擬機 是否支援
sudo service gdm start
~/xorg.conf.new
2-2. -configure
2-2-1. When this option is specified, the Xorg server loads all video driver modules, probes for available hardware, and writes out an initial xorg.conf(5) file based on what was detected.
提到生成 xorg.conf
沒有提到 生成 ~/xorg.conf.new
2-2-2. This option currently has some problems on some platforms
這個參數有一些問題
2-2-3. This option is only available when the server is run as root (i.e, with real-uid 0).
這個參數 只能用在以 root 登入 不適合使用非 root 登入

3. Ubuntu 10.04 desktop 已過了線上安裝/更新 支援期限
建議 還是使用 Ubuntu 12.04 desktop 或 Ubuntu 14.04 desktop

4. 如果還是需要任何幫忙 歡迎再貼文
請註明 VMware 版本號

5. 如果還是使用 Ubuntu 10.04 參閱
http://manpages.ubuntu.com/manpages/luc ... ure.8.html
dpkg-reconfigure - reconfigure an already installed package
lyh33001
帖子: 6
注册时间: 2015-08-21 10:48

Re: gdm和lightdm的设置问题,求大神!

#10

帖子 lyh33001 » 2015-08-25 19:24

1. 你的 ubuntu 10.04 是安裝在 VMware 的 Guest ?
是的,我使用VMware11.0.0 build-2305329 分别装了两个ubuntu,一个是ubuntu10.04,一个是ubuntu14.04,在这两个系统中使用 sudo Xorg -configure生成的都是 xorg.conf.new,使用sudo X -configure生成的也都是xorg.conf.new,并不存在xorg.conf文件。

2-1. PLATFORMS
Xorg operates under a wide range of operating systems and hardware platforms. The Intel x86 (IA32) architecture is the most widely supported hardware platform. Other hardware platforms include Compaq Alpha, Intel IA64, AMD64, SPARC and PowerPC.
沒有看到 對於 VMware 虛擬機 是否支援
这个我看懂了,谢谢大神!

我在ubuntu10.04下可以解决问题,在ubuntu14.04下不可以,所以现在只能用ubuntu10.04了。
万分感谢poloshiao大神的鼎力相助 :em42 :em42 :em42 :em42
回复