You are not logged in.

#1 2015-03-27 18:55:33

ghostjoad
Member
Registered: 2015-03-27
Posts: 10

[Solved] Problem with startx

Hello guys,

recently I tried to switch from Awesome WM to bspwm. I installed bspwm and sxhkd as explained in the wiki, and I replaced

exec awesome

with

sxhkd &
exec bspwm

in .xinitrc. I then typed startx, and after seeing the Nvidia logo the screen becomes black and nothing happens... I switched back to Awesome, but since then startx produces the same black screen. What is strange is that using lxdm to launch xfce or even Awesome works...

What did I do wrong ?

Thanks a lot for your help !

baptiste

Last edited by ghostjoad (2015-04-02 21:12:55)

Offline

#2 2015-03-27 22:08:16

nullified
Member
From: Massachusetts, USA
Registered: 2013-12-09
Posts: 468

Re: [Solved] Problem with startx

What did you do to "swtich to Awesome"? I assume you've changed the .xinitrc appropriately but you should post that here, in its entirety. Is the system up-to-date?


"We may say most aptly, that the Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves." - Ada Lovelace

Offline

#3 2015-03-28 09:45:14

kyawaiiv
Member
Registered: 2014-08-11
Posts: 9
Website

Re: [Solved] Problem with startx

What do you mean by a black screen? bspwm doesn't have any panels or wallpaper by default so the screen should be black iirc -- unless you have an external program to control those. What do you mean by "nothing happens" after the black screen? What did you try? Did you try launching a program (like a terminal) with the sxhkd hotkey?


Github -- Blog
Code is love, Code is life.

Offline

#4 2015-03-28 12:56:52

ghostjoad
Member
Registered: 2015-03-27
Posts: 10

Re: [Solved] Problem with startx

Here is my .xinitrc

setxkbmap -layout fr -model apple_laptop -variant mac                           


nm-applet &
conky &

#Start a D-Bus session
source /etc/X11/xinit/xinitrc.d/30-dbus

#Start Gnome keyring
eval $(/usr/bin/gnome-keyring-daemon --start --components=gpg,pkcs11,secrets,   ssh) 

export SSH_AUTH_SOCK
export GPG_AGENT_INFO
export GNOME_KEYRING_CONTROL
export GNOME_KEYRING_PID

xcalib /home/baptiste/colorprofiles/Color_LCD/00000610-0000-9CA0-0000-000004272800.icc
xrdb -merge ~/.Xresources
exec awesome

It used to work, but for some reason now I doesn't any more...

kyawaiiv wrote:

What do you mean by a black screen? bspwm doesn't have any panels or wallpaper by default so the screen should be black iirc -- unless you have an external program to control those. What do you mean by "nothing happens" after the black screen? What did you try? Did you try launching a program (like a terminal) with the sxhkd hotkey?

I mean that everything is frozen, I have to reboot. And the system is up to date.

Last edited by ghostjoad (2015-03-28 12:57:44)

Offline

#5 2015-03-28 17:58:13

nullified
Member
From: Massachusetts, USA
Registered: 2013-12-09
Posts: 468

Re: [Solved] Problem with startx

Can you switch to another TTY? Does anything appear in the logs?


"We may say most aptly, that the Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves." - Ada Lovelace

Offline

#6 2015-03-28 21:04:43

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,744
Website

Re: [Solved] Problem with startx

ghostjoad wrote:

Here is my .xinitrc

setxkbmap -layout fr -model apple_laptop -variant mac                           


nm-applet &
conky &

#Start a D-Bus session
source /etc/X11/xinit/xinitrc.d/30-dbus

#Start Gnome keyring
eval $(/usr/bin/gnome-keyring-daemon --start --components=gpg,pkcs11,secrets,   ssh) 

export SSH_AUTH_SOCK
export GPG_AGENT_INFO
export GNOME_KEYRING_CONTROL
export GNOME_KEYRING_PID

xcalib /home/baptiste/colorprofiles/Color_LCD/00000610-0000-9CA0-0000-000004272800.icc
xrdb -merge ~/.Xresources
exec awesome

There has been an update of xorg-xinit recently that tweaked the startx script so I think you should change your dbus initiation method to match that used by xorg-xinit.

Replace "source /etc/X11/xinit/xinitrc.d/30-dbus"* with this block:

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

* also, this should actually be "source /etc/X11/xinit/xinitrc.d/30-dbus.sh"

Offline

#7 2015-03-29 11:29:56

ghostjoad
Member
Registered: 2015-03-27
Posts: 10

Re: [Solved] Problem with startx

I tried to change .xinitrc, that didn't work. I cannot open other TTY sessions (ctrl+alt+F2 gives a black screen, I cannot come back).

I managed to have Xfce work with bspwm or awesome, using lxdm as display manager. When logged in this Xfce session, everything works fine, except changing TTY.

nullified wrote:

Can you switch to another TTY? Does anything appear in the logs?

In which log should I look ?

Thanks a lot !

Offline

#8 2015-03-29 11:53:12

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,744
Website

Re: [Solved] Problem with startx

ghostjoad wrote:

In which log should I look ?

https://wiki.archlinux.org/index.php/Journalctl#Journal
See man journalctl

Offline

#9 2015-03-29 11:56:31

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Problem with startx

Also, the X log.

Offline

#10 2015-04-01 14:34:07

ghostjoad
Member
Registered: 2015-03-27
Posts: 10

Re: [Solved] Problem with startx

Hello guys,

so it seems that I had a typo in .xinitrc. If fixed it, and now it's alright !

Thanks a lot for your help smile

Offline

#11 2015-04-01 21:25:36

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Problem with startx

Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309

Offline

Board footer

Powered by FluxBB