You are not logged in.

#1 2012-09-03 15:58:49

jahildebra
Member
Registered: 2012-09-02
Posts: 5

Xmonad | Everything is Broken

Well, I had a power outage the other day whilst using the computer, and when I booted into Xmonad today, it was totally fubar'd.

Xmobar looks like this:
"Could not executecommand SdtinReaderCPUMEMETH0||||||MON 000000||7:49:22"
The day of the week and time work, it looks like. Everything else, not so much.

Windows were no longer transparent, and my wallpaper was a huge garbled mess of RGB noise.


I booted into the X Window System demo without any problems after removing the "xmonad" line from my ~/.xinitrc file, and the default system terminal works just fine. I've checked my ~/.xmonad/xmonad.hs and my ~/.xmobar files, and everything is still in place there. My ~/.xmonad/wallpaper.png is perfectly fine. I ran

sudo pacman -Rs feh xcompmgr
sudo pacman -S feh xcompmgr

to reinstall my wallpaper manager and composite manager, and window transparency is working, along with my wallpaper looking normal again.

However, now I have the problem of Xmonad not recompiling properly, hanging up when I press Mod+Shift+Q, ignoring my terminal commands, and xmobar looking like a train wreck. Even after running

sudo pacman -Rs xmonad xmonad-contrib
sudo pacman -S xmonad xmonad-contrib

these problems persist.

Any suggestions?
Thanks in advance.

Offline

#2 2012-09-03 18:20:18

hellomynameisphil
Member
From: /home/phil/Vancouver
Registered: 2009-10-02
Posts: 257
Website

Re: Xmonad | Everything is Broken

Have you run fsck?

Offline

#3 2012-09-03 21:04:37

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Xmonad | Everything is Broken

It's possible that the xmonad binary in ~/.xmonad got corrupted. If you're confident that your xmonad.hs file is correct, you can delete the binary. It will be rebuilt when restarting xmonad.

Offline

#4 2012-09-04 09:44:06

juna
Member
Registered: 2012-04-02
Posts: 21

Re: Xmonad | Everything is Broken

jahildebra wrote:

However, now I have the problem of Xmonad not recompiling properly, hanging up when I press Mod+Shift+Q, ...

This sounds like the xmonad.hs file is not correct; do you get any errors when running

xmonad --recompile

from a terminal?

Offline

#5 2012-09-05 02:28:38

komrad_toast
Member
From: New York
Registered: 2012-08-24
Posts: 37

Re: Xmonad | Everything is Broken

If the above two suggestions do not work, I would do

pacman -R xmonad xmonad-contrib

and re-install both. Back up your xmonad.hs file first (it should remain in place, but you can never be too safe). Then re-compile xmonad with a barebones configuration file. If it re-compiles correctly you should be able to place your xmonad.hs file back in to your .xmonad folder and recompile again.

Offline

#6 2012-09-05 20:45:29

jahildebra
Member
Registered: 2012-09-02
Posts: 5

Re: Xmonad | Everything is Broken

komrad_toast wrote:

If the above two suggestions do not work, I would do

pacman -R xmonad xmonad-contrib

and re-install both. Back up your xmonad.hs file first (it should remain in place, but you can never be too safe). Then re-compile xmonad with a barebones configuration file. If it re-compiles correctly you should be able to place your xmonad.hs file back in to your .xmonad folder and recompile again.

skottish wrote:

It's possible that the xmonad binary in ~/.xmonad got corrupted. If you're confident that your xmonad.hs file is correct, you can delete the binary. It will be rebuilt when restarting xmonad.

Tried this, and almost everything seems to be working properly.

However, xmobar is still giving me one error:

Could not execute command SdtinReader | Cpu: 1% | Mem: 5% - Swap: 0% | eth0: 0KB|0KB | Wed 09/05/12 | 12:38:50

Also, it doesn't seem to refresh whenever I recompile xmonad.
Any reason why it would be doing this? This is what my logHook section in my xmonad.hs looks like, if this helps:

logHook = dynamicLogWithPP $ xmobarPP { 
                                 ppOutput = hPutStrLn xmproc,
				 ppCurrent = xmobarColor "#33b5e5" "".wrap "<fc=#33FFFF>[</fc>" "<fc=#33FFFF>]</fc>",
                                 ppTitle = xmobarColor "#FFFFFF" "" . shorten 50,
                                 ppHiddenNoWindows = xmobarColor "#DDDDDD" "",
				 ppVisible = xmobarColor "#DDDDDD" "",
				 ppSep = "<fc=#33FFFF> | </fc>",
				 ppLayout = xmobarColor "#FFFFFF" "",
				 ppOrder = \(ws:l:t:_)   -> [ws]
                             }

Also, here's my xmobar config:

Config { font = "-misc-fixed-*-*-*-*-12-*-*-*-*-*-*-*"
       , bgColor = "#111111"
       , fgColor = "#ffffff"
       , border = BottomB
       , borderColor = "#33b5e5"
       , position = Top
       , lowerOnStart = True
       , commands = [ Run Network "eth0" ["-L","0","-H","32","--normal","green","--high","red"] 10
                    , Run Cpu ["-L","3","-H","50","--normal","white","--high","white"] 10
                    , Run Memory ["-t","Mem: <usedratio>%"] 10
                    , Run Swap [] 10
                    , Run Date "<fc=#33b5e5>|</fc> %a %m/%d/%y <fc=#33b5e5>|</fc> %H:%M:%S" "date" 10
                    , Run StdinReader
                    ]
       , sepChar = "%"
       , alignSep = "}{"
       , template = "%SdtinReader%<fc=#33b5e5> | </fc>%cpu%<fc=#33b5e5> | </fc> %memory% - %swap%<fc=#33b5e5> | </fc> %eth0% <fc=#33b5e5>|</fc>  }{ %date% "
       }

I

Offline

#7 2012-09-17 19:57:58

komrad_toast
Member
From: New York
Registered: 2012-08-24
Posts: 37

Re: Xmonad | Everything is Broken

You've misspelled StdinReader (You've spelled it "SdtinReader"). It's in the last line in your "Config" Section, setting as "template".  Try reversing your d and t in the word. Should work then.
Apparently we have all suffered from minor dyslexia tongue

Last edited by komrad_toast (2012-09-19 08:25:42)

Offline

Board footer

Powered by FluxBB