You are not logged in.
Pages: 1
I have followed and read the arch wiki top to bottom, but am still unable to boot into dwm from LXDM. Here is what I did:
First I downloaded the base-devel packages (using pacman)
Then I downloaded all the abs packages (also using pacman)
Then I ran:
pacman -S base-devel abs dmenuThen abs:
abs community/dwmcp -r /var/abs/community/dwm ~/dwmThen I made the package:
makepkg -iThen I made the custom start script and an alternative .desktop file, as said in the wiki
Here are my current files:
/usr/share/xsessions/dwm-personalized.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Dwm-personalized
Comment=Dynamic window manager
Exec=dwm-personalized
Icon=dwm
Type=XSession/usr/bin/dwm-personalized
#!/bin/sh
exec dwm(I changed #!/bin/zsh to /sh because I'm using bash)
Then I made /usr/bin/dwm-personalized executable:
chmod +x /usr/bin/dwm-personalizedI did these steps literally 3 days ago and it installed dwm without error, but yesterday I decided I would change up the config a bit, but broke everything. So I decided to start fresh and delete everything, so I ran:
sudo pacman -Rs dwmand then manually removed the two custom files as said in the wiki.
However, for the past day, I have been trying to literally do the same thing, but now I cannot get into dwm. I turn on my computer, get into LXDM, choose "dwm" or "dwm-personalized" on the drop down menu, then I type in my username and password, then it looks like it's booting into dwm for 1 second, but it doesn't and just boots me out. Would anyone know a fix for this? I am literally doing the same steps that I preformed 3 days ago, but they do not work anymore.
Offline
Can you tell me what happens if you start dwm via .xinitrc?
Offline
I am unsure what you mean by starting via .xinitrc. I am assuming you mean to add "exec dwm" to ~/.xinitrc and then do startx? Well I did that and it leads me to systemd boot messages and that's it.
Offline
Oh sorry. I should have made that clear. That was indeed what I meant.
So dwm does not start when using startx? Looks to me that the problem is not in your setup to start dwm, but in something else.
Can you start other window managers using either startx or LXDM? If not, you might want to look into your X configuration. If the other WM starts, maybe you can recompile dwm or install the stock package to see if the problem is dwm itself or not.
Last edited by runical (2014-06-13 18:24:00)
Offline
Yes, dwm does not start using the "startx" method. Yes I can start other window managers in LXDM, like openbox. I have already tried to recompile dwm, but what confuses me, is that I am literally repeating what I just did 3 days ago, it worked last time, but for some reason not this time. I checked xorg error logs and lxdm logs, but nothing unusual comes up.
Offline
runical is probably right; were the problem in dwm itself, dwm almost certainly wouldn't have compiled and installed in the first place. With regard to the "dwm-personalized" script: All your copy the script does is launch the one and only dwm binary you have installed. It's no different from a symlink. The "personalized" aspect of the script on the wiki page is to set a couple environment variables that could just as easily be set in your Bash configuration, so in your case (and most cases, IMHO) that script is probably unnecessary.
I'm really not familiar with lxdm, but I would guess the problem lies there. If you want to start dwm from lxdm, just use the desktop file that comes with the dwm package from ABS and see if that works; otherwise, try just adding it to ~/.xinitrc again, this time making sure that every command in ~/.xinitrc is appended with '&'. Without the '&' aftear each command the X start-up process will hang, waiting for a command to finish before continuing.
Offline
I'm sorry, I don't know either. It is indeed really confusing that the same steps produce this result.
As far as I know there are no configuration files for dwm either. The only thing I can think of now is that there might be an error in your dwm configuration. Did you try the stock package (the one in the repos)?
EDIT: @ANOKNUSA: I thought that the 'exec' command, being the last one, didn't need the &.
Last edited by runical (2014-06-13 18:51:58)
Offline
ANOKNUSA, I'm sorry but could you further elaborate so that I don't mess up. My ~/.xinitrc file is just:
#!/bin/bash
exec dwmrunical, I will try the stock repo, but could you tell me how? First I do:
pacman -S dwm dmenuCorrect? Then how will I get into dwm from there?
Offline
Yup, that should do it. It should replace the dwm you compiled yourself, so you can just get into it using either startx or LXDM. Whatever you have set up at the moment.
Offline
Unfortunately, it did not work, same as last time, I go into lxdm then choose dwm it boots me right back out. Doing startz does the same thing, I see the systemd start up messages. It looks kind of like this:
[ ok ] Started network manager.
[ ok ] Reached target netowrketc
Offline
So, this means that the problem is not in dwm. I just tested it on my own setup and I can get into dwm without problems. (Getting out was more of a problem
)
To be honest, I have no idea how to proceed now. It seems way too specific. Why only dwm, and not openbox or anything else?
Offline
How did you run it exactly on your setup?
Offline
I installed the package and launched it using lightDM with the provided desktop file. But, as you can't launch dwm using startx, the problem can't really be in the display manager. You can try, but I don't think it will make a difference.
Offline
I'm confused too. If that's all you have in your ~/.xinitrc, melrosearch, things should just work. You wouldn't happen to have an ~/.xsession file, would you?
@ANOKNUSA: I thought that the 'exec' command, being the last one, didn't need the &.
You're right. I've got a half-dozen things in mine, though, and back when I first started using stand-alone window managers I had more and got myself stuck by missing that one character. ![]()
Offline
ANOKNUSA, I do have a xsession file, is that the problem?
Offline
I don't think it should be, but would you mind posting it anyway?
Offline
Yeah of course, here is my ~/.xsession:
#!/bin/sh
#
# ~/.xsession
#
# Executed by xdm/gdm/kdm at login
#
/bin/bash --login -i ~/.xinitrcOffline
Yeah, there's nothing wrong there---it just executes the commands in ~/.xinitrc. I'm stumped.
Offline
You're telling me! Haha
Offline
This thread has too much confusion. First of all, why are you seeing systemd boot messages when you Start X? Or am I just reading your posts wrong? Let's take away all the unnecessary factors. Boot into TTY1, not into your login manager. Re-install dwm by following the four steps you wrote in your OP and have "exec dwm" in your ~/.xinitrc and try running "startx". What happens? What errors?
PS. Do not install dwm via pacman -S dwm unless you don't want to modify your dwm setup (patching and config.h header)
Offline
PS. Do not install dwm via pacman -S dwm unless you don't want to modify your dwm setup (patching and config.h header)
I asked him to do that to make sure that there were no errors in his config which were not seen during compile time. But indeed, dwm + package manager is not a good idea in general.
Offline
Pages: 1