You are not logged in.
Pages: 1
Hello everyone.
I have tried for quite a while now to install the razercfg program ( http://bu3sch.de/cms/index.php/razer-ne … onfig-tool ), which is basically a driver for the razer gaming mice for linux. I did have it 90% working on my last system, it wouldn't load the DAEMON on boot but I could manually load it with sudo rc.d and it would run just fine after that. Unfortunately that install died due to a system upgrade when my /tmp was full and I was unable to fix the kernel panic resulting from this. Learnt my lesson and duely noted the wise wisdom of https://bbs.archlinux.org/viewtopic.php?id=57205 .
Upon reinstalling to the latest version of arch, I am unable to even get it working manaully. I have followed this guide, https://wiki.archlinux.org/index.php/Razer which didn't help me as I was unable (after following all the steps) to get it to work. I have tried installing with yaourt, packer and even manually (the normal and git version). Yaourt and packer had errors saying it wasn't in the AUR and ceased trying to install, the razercfg.taz.bz2 had errors on compiling but cloning the git version was successful. I could compile it, but upon trying to start the DAEMON razerd, I come across this error on boot or when trying to load manaully.
$ sudo rc.d start razerd
/etc/rc.d/razerd: line 18: /lib/lsb/init-functions: No such file or directory
I have search the AUR for init-functions or lsb-init-functions and haven't had any success finding anything. I did find a post on this forum about just commenting out the line in the script, but when I do I just get more errors. That post is here for those interested:
https://bbs.archlinux.org/viewtopic.php?id=95211
I am at a loss of what to do, I really need to get this working as I am unable (as far as I know) to change the DPI of my mouse without this tool, I can change the USB hertz just fine without the tool but I am unable to change the DPI, which is really needed since it is a 3600DPI mouse and I want 900DPI.
Thank you for any forth coming help.
P.S. Even though I am a total n00b to arch linux, I very much love it and will continue to use it. The only thing I use windows for now is gaming, and if I can get the mouse driver working again I will be gaming in linux once again!
Intel inside, idiot outside.
Offline
Change the following
PKGBUILD(as noted in the aur page)
install=('razercfg.install')
to
install='razercfg.install'
You also have the wrong daemon file make sure it is as follows
/etc/rc.d/razerd
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
# Path to the PID-file
PIDFILE="/var/run/razerd/razerd.pid"
case "$1" in
start)
stat_busy "Starting razerd"
razerd -B -P $PIDFILE &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else
add_daemon razerd
stat_done
fi
;;
stop)
stat_busy "Stopping razerd"
if [ -r "$PIDFILE" ]; then
kill `cat $PIDFILE` &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else
rm_daemon razerd
stat_done
fi
else
stat_fail
fi
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
exit 0
Offline
Balls. I tried to rewrite the razerd script, here it is anyway:
#!/bin/sh
# /etc/rc.d/razerd
. /etc/rc.conf
. /etc/rc.d/functions
PID=$(pidof -o %PPID /usr/sbin/razerd)
pidfile=/var/run/razerd/razerd.pid
case "$1" in
start)
stat_busy "Starting razerd"
[ -z "$PID" ] && /usr/sbin/razerd -f -B -P $pidfile &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else
add_daemon razerd
stat_done
fi
;;
stop)
stat_busy "Stopping razerd Daemon"
[! -z "$PID" ] && kill $PID &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else
rm -f $pidfile
rm_daemon razerd
stat_done
fi
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 {start|stop|restart|}"
exit 1
;;
esac
exit 0
Last edited by Earnestly (2012-01-25 13:09:29)
Offline
Thank you so much for the quick replies. I do remember editing the install script on an older arch build but with no success, it must have been the razerd being incorrect. I guess I will have to try and be more observant when reading.
I didn't try your install script Kaustic as jwwolf's suggestions worked. The DAEMON now loads at boot!
Thank you both for your help.
Intel inside, idiot outside.
Offline
Pages: 1