You are not logged in.
Hi there,
I just shifted to Arch two weeks ago. Although I was using ubuntu for the last few years but I wasn't aware of the typical config things that I came to know about using Arch. Really, I've learnt quite a lot things and have became a fan of it.
I am learning new things each day and trying to install softwares or solve issues googling various pages and going through the arch wikipages for these last two weeks. But two things I am unable to do despite of numerous efforts. So, it would be great if someone can help me with these.
1. Wireless switch hard blocked
When session startsup, my network systray icon shows "wireless switch disabled by hardware". While on ubuntu, I used to have the following commands placed in rc.local file so as to enable the wifi switch:
(sleep 5 ; modprobe -rf hp-wmi) &
(sleep 7 ; rfkill unblock all) &
(sleep 9 ; ifconfig wlan0 up) &
(sleep 11; nmcli nm wifi on) &
But, here in Arch, I somewhere read that rc.conf file doesn't exist anymore and that systemd has taken its place and we can now use scripts to fire terminal commands at startup. So, I wrote a script with content as "modprobe -rf hp-wmi" and put it in usr/lib/systemd/scripts folder. Then I did chmod 755 wifi-wakeup.sh to make it executable. then created a service file named wifi-wakeup.service in /lib/systemd/system folder with the following content.
[Unit]
Description=Wifi Wakeup
[Service]
Type=oneshot
ExecStart=/usr/lib/systemd/scripts/wifi-wakeup --root
[Install]
WantedBy=network.target
Then I ran "sudo systemctl enable wifi-wakeup.service" but it fails everytime. What else needs to be done to make the service run without fail on each login?
2. autostart conky
Have a conky file which gets fired when I issue the command "conky" in terminal. But it doesn't gets started automatically on session startup although I have placed a autostart entry in xfce autostart apps list. (I use xfce btw as my DE)
Hoping to get an early help. Thanks in advance to all those who reads this.
Cheers
swaroop
Offline
2. autostart conky
Have a conky file which gets fired when I issue the command "conky" in terminal. But it doesn't gets started automatically on session startup although I have placed a autostart entry in xfce autostart apps list. (I use xfce btw as my DE)
Do other apps on that list start automatically?
Offline
Not sure about that coz haven't added anything esle in that list.
Offline
I also tried to make a systemd service file but couldnt figure it out.
So I suggest you make a script and execute it manually, and/or load the kernel module automatically at startup.
https://wiki.archlinux.org/index.php/Kernel_modules
Conky, besides enabling it in startup, you would need to create a .desktop file for it, and place it in ~/.config/autostart/conky.desktop
https://bbs.archlinux.org/viewtopic.php … 8#p1262988
You should do more research before posting.
Last edited by aaditya (2013-09-20 15:37:25)
Offline
Conky, besides enabling it in startup, you would need to create a .desktop file for it, and place it in ~/.config/autostart/conky.desktop
https://bbs.archlinux.org/viewtopic.php … 8#p1262988You should do more research before posting.
After reading the wiki I wasn't sure about it.
.desktop seems like a general way of autostarting and XFCE (and other DEs) use their GUI apps for that.
https://wiki.archlinux.org/index.php/Au … #Graphical
Is it a conky-only issue https://wiki.archlinux.org/index.php/Co … with_Xfce4 or do other apps need .desktop fies to autostart too?
I don't want to get off-topic, but I prefer the wiki to give the correct answers and not send users on a wild goose chase :-)
Offline
.desktop seems like a general way of autostarting and XFCE (and other DEs) use their GUI apps for that.
https://wiki.archlinux.org/index.php/Au … #GraphicalIs it a conky-only issue https://wiki.archlinux.org/index.php/Co … with_Xfce4 or do other apps need .desktop fies to autostart too?
I don't want to get off-topic, but I prefer the wiki to give the correct answers and not send users on a wild goose chase :-)
I think .desktop files are needed ![]()
For most applications they are automatically created when one enables the corresponding application in startup manager.
Conky needs manual intervention I think because of the -p 10 option that is used to make it load after the desktop itself is loaded.
I am not completely sure on these points, still a beginner ![]()
Edit-
I just checked, .desktop file is automatically created for conky too.
Just need to add
conky -p 10 in startup.
Most probably the OP put in only conky .
Last edited by aaditya (2013-09-20 16:44:37)
Offline
Hi Aaditya,
Thanks for the links.
I went up with the help link for conky that you gave and conky is working fine now. Thanks. I learnt a new thing here - that the .desktop files are the one that we newly create in "session n startup" menu in xfce. I was doing it correctly but was giving the wrong command to fire up. Earlier in Ubuntu I had to fire up the start-conky.sh script in the command section of the entry. Where as in Arch I need to give the terminal command along with the delay timing. Thats it and we are good. Conky is running great now. Thanks again with this.
Secondly, with the wireless hard block. - I was trying too hard doing one or the other things mentioned in the page you mentioned to load modules in kernel line. then suddenly I thought of googling with the keyword "hp wifi and bluetooth hardblocked on boot". It listed me a page http://glonek.co.uk/linux-mint/wireless … d-blocked/ which says when "When we face such hardblock issue, just try pressing the wifi on/off button on the keyboard just between the time the system boots and OS loads. Doing this switched the mode on and off." This thing mysteriously worked like a charm for me. For the last one year I have been facing this hard block issue each time I tried out any new OS or upgrade and try to install a new version of Ubuntu or whatever OS. God!! this is such a relief. I tried booting several times after this and my bluetooth and wireless stays on after each boot.
Thanks for your prompt support.
Cheers,
swaroop
Offline
Hey Aaditya, is there a way we can mark this post as "Solved" so that it can help any other person facing a similar issue?
Offline
Hey Aaditya, is there a way we can mark this post as "Solved" so that it can help any other person facing a similar issue?
You can mark a thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309
Offline
glad to help, swaroop ![]()
I learned many things as well.
Offline