You are not logged in.

#1 2014-07-11 21:36:18

Ploppz
Member
Registered: 2013-09-14
Posts: 311

X (or rather bspwm) all of a sudden won't work on my laptop

When I write startx in my tty, I only get a black screen and no key bindings work, except ctrl+alt+F<n> - switching tty works.

I did two changes before this happened:
I copied some configures from my desktop to my laptop: i.e. .xinitrc, .zshrc, .zprofile. But I don't think this should be a problem.

The second thing I did was switch username:

usermod -l ploppz oldname
usermod -d /home/ploppz ploppz
mv /home/oldname /home/ploppz

Here is my .xinitrc, in any case:

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

# Set keymap
setxkbmap no

# Enable fonts in /usr/share/fonts/local
xset +fp /usr/share/fonts/local
xset fp rehash
#
xset r rate 300 24

# Devmmon

killall devmon

devmon --no-gui \
--exec-on-drive "notify-send -a \"devmon\" \"Mounted\" \"Mounted %l on %d\"" \
--exec-on-unmount "notify-send -a \"devmon\" \"Unmounted\" \"Unmounted %l.\"" \
--exec-on-disc "notify-send -a \"devmon\" \"Mounted data CD/DVD.\"" \
--exec-on-video "notify-send -a \"devmon\" \"Mounted video DVD.\"" \
--exec-on-audio "notify-send -a \"devmon\" \"Inserted audio CD.\"" \
--exec-on-remove "notify-send -a \"devmon\" \"Drive removal\" \"Removed %l.\"" &

sxhkd -f 123 &
exec bspwm

I commented out everything except the last line, and it still didn't work.

Here is the log file: http://sprunge.us/OVUM

I have to pkill x from another tty to quit it. I tried bspc quit but it says "Failed to connect to socket.". I'm not sure if this is possible under normal circumstances anyway (quitting it from another tty).

One thing X says in the tty (after I killed it): "Loading extension GLX
  Permission denied(II) AIGLX: Suspending AIGLX clients for VT switchxinit: connection to X server lost"

Another minor detail: When I press ctrl+alt+F2, the screen gets completely dark (no backlight; there is backlight when I startx, and only see a black screen), then the backlights seem to fade so that tty2 gets gradually visible.

I am quite clueless how I can go about this further; I hope someone can help me.

Edit: Seems there's a problem with bspwm rather than X. I also moved bspwm config file, but there isn't anything revolutionary inside that file... I'll go to bed now.


Thanks!

Last edited by Ploppz (2014-07-13 17:10:11)

Offline

#2 2014-07-11 21:52:51

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,863
Website

Re: X (or rather bspwm) all of a sudden won't work on my laptop

I found myself in a similar situation earlier this week, but without all the backstory. In my case, removing /etc/X11/xorg.conf.d/20-intel.conf (a file I created to switch the Intel AccelMethod to UXA) was the solution. This may, or may not be helpful to you.

You should probably check the permissions on the files in your new home, just to make sure they didn't become owend by root when you copied them over.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2014-07-11 22:21:26

Ploppz
Member
Registered: 2013-09-14
Posts: 311

Re: X (or rather bspwm) all of a sudden won't work on my laptop

Thanks for the reply! /etc/X11/xorg.conf.d/ contains: 10-evdev.conf, 10-quirks.conf, 50-synaptics.conf. I can't recall having touched any of them.

The permissions all look fine; mostly -rwxr-xr-x 1 ploppz users ...

Offline

#4 2014-07-12 09:16:02

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: X (or rather bspwm) all of a sudden won't work on my laptop

So you can't start bspwm from .xinitrc but you can start a different window manager?

I was a little surprised to see:

[  1964.379] (++) using VT number 1

I thought the default will be VT 7 until the next xinit release.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#5 2014-07-12 09:44:15

Ploppz
Member
Registered: 2013-09-14
Posts: 311

Re: X (or rather bspwm) all of a sudden won't work on my laptop

That's right; openbox-session worked.

Edit: Here's eventually bspwmrc, but there shouldn't be anything wrong.

#! /bin/sh

bspc rule -a Steam follow=on
bspc rule -a Eclipse floating=on
bspc rule -a virtualbox floating=on
bspc rule -a pavucontrol floating=on
bspc rule -a Firefox floating=on
bspc rule -a xpad floating=on

bspc config border_width        4
bspc config window_gap          5
bspc config split_ratio         0.5
bspc config borderless_monocle  true
bspc config gapless_monocle     true
bspc config focused_border_color '#8B2DD2'
bspc config normal_border_color '#000000'
bspc config presel_border_color '#702000'
bspc config top_padding 14
bspc config auto_cancel true

bspc monitor -d 2 3 15 20 17 22 23 10 7

Last edited by Ploppz (2014-07-12 17:28:25)

Offline

#6 2014-07-13 16:54:30

Ploppz
Member
Registered: 2013-09-14
Posts: 311

Re: X (or rather bspwm) all of a sudden won't work on my laptop

Shameless bump. I'm going away with my laptop tomorrow and would like if I would be able to use it. So I really hope someone can help me with this, since I'm clueless. I tried to run without bspwmrc, but still not working; so bspwmrc is not the problem.

Offline

#7 2014-07-13 17:51:31

aoba
Member
Registered: 2013-08-30
Posts: 70

Re: X (or rather bspwm) all of a sudden won't work on my laptop

A black screen with no keybindings has usually meant a problem with sxhkd in my experience.  Might be worth investigating.

You can also check to see if bspwm is working by switiching to a tty and running something like:

$ DISPLAY=:0 urxvt

where you can replace urxvt with whatever.

Edit: followed by, of course, switching back to X and checking if urxvt showed up correctly.

Last edited by aoba (2014-07-13 17:52:47)

Offline

#8 2014-07-13 19:59:38

Ploppz
Member
Registered: 2013-09-14
Posts: 311

Re: X (or rather bspwm) all of a sudden won't work on my laptop

Opening termite worked! So certainly there's something wrong with sxhkd, and I found the error after some troubleshooting: In .xinitrc: sxhkd -f 123. My laptop doesn't have the version of sxhkd that supports -f, thus it treats 123 as a config file and ceases to start.

Thank you very much!

Offline

Board footer

Powered by FluxBB