You are not logged in.

#1 2019-07-06 09:59:19

aayuuush
Member
Registered: 2019-07-06
Posts: 5

Laptop turns off when I type in a command

I have just installed a fresh arch install on my laptop, and I've been trying to get up the graphical interface (Xorg) to work. I'm using dwm as my window manager and I've already placed "exec dwm" in my .xinitrc file.

The issue is that when I type in "startx" or some other commands (such as  lspci | grep -e VGA -e 3D), my laptop will just shut down immediately.

Please help, and thank you in advance.

Offline

#2 2019-07-06 10:00:15

aayuuush
Member
Registered: 2019-07-06
Posts: 5

Re: Laptop turns off when I type in a command

I installed arch on an UEFI system and everything works as normal except for what I have just mentioned.

Offline

#3 2019-07-06 10:37:02

loqs
Member
Registered: 2014-03-06
Posts: 19,101

Re: Laptop turns off when I type in a command

Does the system have an Nvidia GPU?  NVIDIA_Optimus#Lockup_issue_(lspci_hangs)

Offline

#4 2019-07-06 11:53:18

aayuuush
Member
Registered: 2019-07-06
Posts: 5

Re: Laptop turns off when I type in a command

loqs wrote:

Does the system have an Nvidia GPU?  NVIDIA_Optimus#Lockup_issue_(lspci_hangs)


Yes it does!
I just tried adding the kernel parameters like it suggests, it stopped crashing when i ran startx but then the xorg server would still crash and not start. It would report back that there is an error regarding the keyboard or something. I'm using a GB locale and UK keyboard.

Then I decided to remove DISPLAY=foo.bar:1 from my xinitrc file, then my laptop shut off again.

Last edited by aayuuush (2019-07-06 11:54:12)

Offline

#5 2019-07-06 12:03:04

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,530
Website

Re: Laptop turns off when I type in a command

aayuuush wrote:

It would report back that there is an error regarding the keyboard or something

https://bbs.archlinux.org/viewtopic.php?id=57855


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2019-07-06 12:24:20

aayuuush
Member
Registered: 2019-07-06
Posts: 5

Re: Laptop turns off when I type in a command

Trilby wrote:
aayuuush wrote:

It would report back that there is an error regarding the keyboard or something

https://bbs.archlinux.org/viewtopic.php?id=57855

https://ibb.co/92Zkqsb

This is a link to a picture of my screen that shows my error.

Offline

#7 2019-07-06 13:02:16

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,500

Re: Laptop turns off when I type in a command

Please post the output of dmesg and your xorg log.
You can use https://wiki.archlinux.org/index.php/Pastebin to do this from a CLI context.

Offline

#8 2019-07-06 15:20:19

aayuuush
Member
Registered: 2019-07-06
Posts: 5

Re: Laptop turns off when I type in a command

DMESG: https://pastebin.com/KgVy00MW

It does not let me pipe the xorg messages, please refer to my screenshot please, thanks

Offline

#9 2019-07-06 15:21:33

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,500

Re: Laptop turns off when I type in a command

Your xorg log, not the output of startx.
Also "startx 2>&1 | curl …" but that's besides the point.

Edit: also how do you attempt to configure the optimus system?
https://wiki.archlinux.org/index.php/Optimus

Last edited by seth (2019-07-06 15:23:44)

Offline

Board footer

Powered by FluxBB