You are not logged in.

#1 2013-10-21 00:47:25

helmut
Member
Registered: 2008-10-10
Posts: 65

[SOLVED] I can start X (via "startx") but cannot shutdown

I have done a basic installation of arch linux on my laptop. I have followed the installation guide and everything worked fine. Now I have started to install X.

As "root" I can start X by "startx". Then the twm appears as expected and I can start xterms, xclocks ... But I cannot shut down X anymore in a controlled way. I have tried to "exit" all windows. At exiting the last window the system does not return to the original terminal where I have started but just responds with a grey screen and the system seems to be frozen. I cannot switch to a terminal via "Alt-Ctl 1" or similar.

As a normal user issuing "startx" X does not start but responds immediately with the grey screen as described above.

Some data

lspci -nn

00:00.0 Host bridge [0600]: Intel Corporation 82440MX Host Bridge [8086:7194] (rev 01)
00:00.1 Multimedia audio controller [0401]: Intel Corporation 82440MX AC'97 Audio Controller [8086:7195]
00:00.2 Modem [0703]: Intel Corporation 82440MX AC'97 Modem Controller [8086:7196]
00:07.0 Bridge [0680]: Intel Corporation 82440MX ISA Bridge [8086:7198] (rev 01)
00:07.1 IDE interface [0101]: Intel Corporation 82440MX EIDE Controller [8086:7199]
00:07.2 USB controller [0c03]: Intel Corporation 82440MX USB Universal Host Controller [8086:719a]
00:07.3 Bridge [0680]: Intel Corporation 82440MX Power Management Controller [8086:719b]
00:12.0 Ethernet controller [0200]: Intel Corporation 82557/8/9/0/1 Ethernet Pro 100 [8086:1229] (rev 09)
00:13.0 CardBus bridge [0607]: O2 Micro, Inc. OZ6933/711E1 CardBus/SmartCardBus Controller [1217:6933] (rev 02)
00:13.1 CardBus bridge [0607]: O2 Micro, Inc. OZ6933/711E1 CardBus/SmartCardBus Controller [1217:6933] (rev 02)
00:14.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Rage Mobility-M1 PCI [1002:4c52] (rev 64)
01:00.0 Ethernet controller [0200]: Marvell Technology Group Ltd. 88w8335 [Libertas] 802.11b/g Wireless [11ab:1faa] (rev 03)
grep EE /var/log/Xorg.0.log

[   116.502] Initializing built-in extension MIT-SCREEN-SAVER
[   117.055] (EE) Failed to load module "mach64" (module does not exist, 0)
[   117.072] (EE) Failed to load module "modesetting" (module does not exist, 0)
[   117.074] (EE) Failed to load module "fbdev" (module does not exist, 0)

The complete Xorg.0.log is at http://bpaste.net/show/142326/.

I have installed xf86-video-vesa and xf86-video-ati. Any hint on how to resolve this issue? More diagnostics needed to analyze?

Last edited by helmut (2013-10-24 02:10:15)

Offline

#2 2013-10-21 00:58:23

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] I can start X (via "startx") but cannot shutdown

Get rid of both of those drivers and try xf86-video-mach64

Offline

#3 2013-10-21 01:17:24

helmut
Member
Registered: 2008-10-10
Posts: 65

Re: [SOLVED] I can start X (via "startx") but cannot shutdown

I have done  "pacman -R xf86-video-vesa xf86-video-ati" and installed xf86-video-mach64. Now the problem seems to be resolved for "root". I.e. issuing "startx" starts the X server. Issuing "exit" on all terminals shuts it down.

However as a normal user the X server does not start up. Issuing "startx" results in an immediate shutdown with the following log:

grep EE /var/log/Xorg

[  8365.310] (EE) Failed to load module "ati" (module does not exist, 0)
[  8365.312] (EE) Failed to load module "vesa" (module does not exist, 0)
[  8365.315] (EE) open /dev/dri/card0: No such file or directory
[  8365.315] (EE) open /dev/dri/card0: No such file or directory
[  8365.317] (EE) Screen 0 deleted because of no matching config section.
[  8365.323] (EE) FBDEV(0): FBIOBLANK: Invalid argument
[  8365.989] (EE) FBDEV(0): FBIOBLANK: Invalid argument
[  8366.375] (EE) Server terminated successfully (0). Closing log file.

Issuing "startx" as root results in the same logfile. But the server does not shutdown until I issue "exit" from the last terminal.

Offline

#4 2013-10-21 01:27:11

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] I can start X (via "startx") but cannot shutdown

"Server terminated successfully" means there's nothing wrong. Your user probably has a ~/.xinitrc that isn't set to start anything. The root user probably doesn't have that file, so it defaults to /etc/X11/xinit/xinitrc, which runs twm.

Offline

#5 2013-10-21 01:40:32

helmut
Member
Registered: 2008-10-10
Posts: 65

Re: [SOLVED] I can start X (via "startx") but cannot shutdown

Right. The user has a ~/xinitrc which does not start anything. I have entered a line "twm" or "exec starttwm" but twm is not started.

Offline

#6 2013-10-21 01:44:48

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] I can start X (via "startx") but cannot shutdown

Take a look at the end of /etc/X11/xinit/xinitrc to see how to start twm. If you don't start a terminal emulator as the login shell, not much is going to happen.

Offline

#7 2013-10-21 01:53:07

helmut
Member
Registered: 2008-10-10
Posts: 65

Re: [SOLVED] I can start X (via "startx") but cannot shutdown

Now I have installed xfce4 and activated "exec startxfce4" in ~/.xinitrc. The Windows manager starts.

But now I realized that the X server just uses a fraction of the screen. The same applies to twm which starts without any .xinitrc. How can a configure the screen.

In the xfce4 settings I cannot adjust the resolution. It just offers me 640x480. But the screen has certainly a higher resolution.

Offline

#8 2013-10-21 02:12:21

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED] I can start X (via "startx") but cannot shutdown

Please search the wiki. What have you tried to fix the issue?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#9 2013-10-21 03:15:08

helmut
Member
Registered: 2008-10-10
Posts: 65

Re: [SOLVED] I can start X (via "startx") but cannot shutdown

I have removed the xf86-video-mach64 and installed xf86-video-ati. The behaviour is the same. The resolution does not change.

Searching the wiki does not give any information on how to adapt the resolution. It seems to be a more fundamental problem because the ascii terminal does use only the same part of the screen as well.

The program xrandr does give me just 640x480 as possible resolutions.

Offline

#10 2013-10-21 03:19:53

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] I can start X (via "startx") but cannot shutdown

That sounds more like a KMS problem

Offline

#11 2013-10-21 03:43:27

helmut
Member
Registered: 2008-10-10
Posts: 65

Re: [SOLVED] I can start X (via "startx") but cannot shutdown

KMS? Kernel Mode Setting?

Offline

#12 2013-10-21 14:36:22

helmut
Member
Registered: 2008-10-10
Posts: 65

Re: [SOLVED] I can start X (via "startx") but cannot shutdown

Removing xf86-video-ati and installing xf86-video-vesa resolved the problem with the resolution. I don't know why, but it works.

Anyhow, thanks for your help.

Offline

Board footer

Powered by FluxBB