Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#2 Re: Tips, Tricks & Scripts » How To: disable (Synaptics) touchpad when an USB mouse is connected » 2013-08-13 09:51:33

bleach wrote:

is there a command to toggle it?

for instance is there a way for a if 1=true then off and vice versa for a script?

I don't really get your question -  I am not even sure if you are talking to me...


Both the snippet for xinitrc and the udev rule will toggle the touchpad according to certain conditions.

if [ `ls -d /sys/class/input/mouse* | wc -w` -gt 1 ];then... checks if there is more than one mouse connected and switches off the touchpad if true, and does nothing if false.

The udev-rule checks if a mouse is being (dis)connected and calls the touchpadtoggle script with the according parameter (0 when disconnecting it, 1 when connecting).

If you want to toggle manually, just use synclient TouchpadOff=X.

#3 Re: Tips, Tricks & Scripts » How To: disable (Synaptics) touchpad when an USB mouse is connected » 2013-08-13 08:23:36

I achieve the same by having this in my .xinitrc:

if [ `ls -d /sys/class/input/mouse* | wc -w` -gt 1 ];then
synclient TouchpadOff=1

To switch the touchpad on when unplugging the mouse, and off again when plugging it in, I have this:


ACTION=="add", ATTRS{bInterfaceClass}=="03", ATTRS{bInterfaceSubClass}=="01", ATTRS{bInterfaceProtocol}=="02", ENV{REMOVE_CMD}="/usr/local/bin/touchpadtoggle 0", RUN+="/usr/local/bin/touchpadtoggle 1"

export XAUTHORITY="/home/<username>/.Xauthority"
# xfile=$(find /var/run/gdm/ -name *<username>* -print -quit)
# export XAUTHORITY="$xfile/database"
export DISPLAY=":0.0"
/usr/bin/synclient touchpadoff=$1

You might have to find out how to handle authorisation if you don't use either slim or startx to start your WM/DE. The two lines I commented out are needed for GDM. The attributes in the udev rule should work with every USB mouse.

#4 Re: Help & Support (Testing/Unstable) » [SOLVED]Hard disk powering down incessantly » 2013-03-04 17:19:48

It could also be done with a udev rule... At least that's how I am doing it on Arch. Should be the same on Debian, more or less?

#5 Re: Help & Support (Testing/Unstable) » [SOLVED]Hard disk powering down incessantly » 2013-03-04 11:31:45

APM 254 should be fine, but just to be sure you might want to run the sdparm command regularly and watch especially the value:

193 Load_Cycle_Count

If it keeps rising at a similar rate as before you should try setting APM to 255.

I had the same problem on my netbook, and setting the value to 254 did the trick for me. About running this command on startup you should search this forum & the web for either rc.local or generally about how to run commands on boot in Debian - I don't remember how I did it. It has nothing to do with sudo - rc.local runs commands as root.

#6 Re: Help & Support (Testing/Unstable) » [SOLVED]Hard disk powering down incessantly » 2013-03-04 01:58:00

Please post the output of

sudo smartctl -a /dev/sda


sudo hdparm -I /dev/sda

You may have to install those programs.

Edit: typo

#7 Re: Devel: CrunchBang 11 "Waldorf" » Broadcom wireless support » 2013-03-01 22:16:06

The driver is not b43, but brcmsmac. You will have to install Just download it and install it manually, either from another partition on the same computer if you are dual booting or from an USB if you are not.

#8 Re: Help & Support (Testing/Unstable) » [Solved] A little bit too hot on Waldorf » 2012-12-29 13:38:15

How to install smxi:
And to use 3.6+ kernels you have to enable siduction or liquorix sources, smxi will offer you the latter.

#9 Re: WM/DE Talk » [Solved] Awesome Window Manager, system tray » 2012-12-13 04:40:29

You might also need to start the applets (nm-applet, volumeicon(?),...) with Awesome. See this page.

#10 Re: Help & Support (Crunchbang 11 "Waldorf") » New Netbook Packard Bell Dot S - Battery life » 2012-12-01 12:50:24

How's the battery life now? I asked my friend, he has about 2.5 hs of battery with siduction-xfce4 on this netbook with a 3-cell battery.

#11 Re: Help & Support (Crunchbang 11 "Waldorf") » [SOLVED]Broadcom Corporation BCM4313 - System does not boot » 2012-11-30 13:21:15

Do you dual boot with (e.g.) ubuntu? I had the same problem as you whith this card when trying to use the proprietary driver in #! and the open-source one (+ firmware) in Arch. Try to reset the BIOS to defaults, that might get you a bootable system again.

Also, please post the output of


#12 Re: Help & Support (Crunchbang 11 "Waldorf") » New Netbook Packard Bell Dot S - Battery life » 2012-11-30 13:12:47

^It's not an Intel, but a PowerVR graphic card, so all the rc6 stuff is useless.

@gosom: Try newer (3.6x +) kernels (liquorix, siduction-kernels), they are supposed to have improved support for power management on this card. Also, try searching for "gma3600" or "intel cedar view" in the webs...
I have the same netbook, but I barely use it (I gave it to a friend without computer). It has been getting better with newer kernels, at least performance-wise. Dunno about battery life.

Some info:

#13 Re: Help & Support (Crunchbang 11 "Waldorf") » Software for moving files to mp3 player? » 2012-10-27 09:10:36

If you plug in your mp3 player, is it mounted automatically like a usb stick or external hard drive? If not, it is probably using MTP (Media Tranfer Protocol). I don't know if it improved lately, but a couple of years ago MTP implementation in Linux was a nightmare... You could try installing one of the full-featured media players like rhythmbox or amarok and see if it allows you accesssing your mp3 player.

#14 Re: CrunchBang Talk » [Solved] Iceweasel homepage from Debian netinstall is #! » 2012-10-25 12:01:34

Ahem, probably stupid question, but anyway: did you copy your .mozilla directory from #! to your new home directory?

EDIT: joek is typing faster than me, obviously.

#15 Tips, Tricks & Scripts » HowTo - Toggle touchpad when (dis)connecting a USB mouse » 2012-10-19 12:16:59

Replies: 0

There already exists a how-to for disabling the touchpad when a USB mouse is plugged in during boot by rhowaldt.

This doesn't work, though, when the mouse is plugged in after starting X, and the touchpad stays off after unplugging the mouse.
For toggling to work, you have to create a file /etc/udev/rules.d/01-touchpad.rules with following content:

ACTION=="add", ATTRS{bInterfaceClass}=="03", ATTRS{bInterfaceSubClass}=="01", ATTRS{bInterfaceProtocol}=="02", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/USERNAME/.Xauthority", ENV{REMOVE_CMD}="/usr/bin/synclient TouchpadOff=0", RUN+="/usr/bin/synclient TouchpadOff=1"
  • The three values "ATTR{bInterface*}" should catch every USB mouse.

  • Replace USERNAME with your username.

  • without ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/USERNAME/.Xauthority" synclient  gives an error about being unable to connect to the X and a missing protocol.

I tested this in #! Waldorf and Arch, maybe someone wants to give it a try in Statler?

See also: … mouse-rule … _detection

I forgot to mention, you still need rhowaldt's bash file and entry in autostart for the mouse to be disabled on login - the udev rules only work when the mouse is connected after booting up.

#16 Re: Feedback & Suggestions » Systemd opposed to init? » 2012-10-14 20:57:30

For another overview to what is delaying your boot you could also try

systemd-analyze plot > systemd.svg

#17 Re: Off Topic / General Chat » Buying new laptop, what should... » 2012-10-09 17:10:36

The case looks exactly like my friend's laptop, and the specs are almost the same (she has an i3-2330, not i3-2370). It is actually a Clevo laptop. In her case it came with a realtek wifi card that is working very unreliably with #! (or Linux in general, I guess).
It also runs ~10ºC hotter ( at around 45º to 50ºC) than my samsung with i5-2450m, I suspect the fan or generally the heat dissipation to be of lower quality. The case doesn't get hot, though, and I have never seen it above 65ºC, even on high loads.

#18 Re: Help & Support (Crunchbang 11 "Waldorf") » wifi on #! » 2012-09-13 07:51:40

EDIT: I let the master of wireless take it from here smile

#19 Re: Help & Support (Crunchbang 11 "Waldorf") » wifi on #! » 2012-09-12 23:17:45

Maybe your wireless isn't working. Please post the output of:

lspci -knn | grep -i net -A2

#20 Re: Feedback & Suggestions » Cannot get WIFI working [SOLVED] » 2012-09-09 14:57:47

You do not need to install firmware-b43-installer, but firmware-brcm80211. See Note that the name of the module changed in Squeeze, it is now the same as in Wheezy, at least when using backports.

sudo apt-get install firmware-brcm80211

Then give it a try:

sudo modprobe brcmsmac

or just reboot.

#21 Re: Off Topic / General Chat » NVIDIA Confirms It's Working On Optimus Linux Support...finally » 2012-09-05 11:08:07

Great news. Although for me optimus is working fine with waldorf, after adding a third-party repository (yeah, I know).

It *really* sucks in Arch though, I ended up just using bbswitch+nouveau to disable the nvidia gpu...

#22 Re: Off Topic / General Chat » just wondering - What's your 2nd best forum for linux stuff? » 2012-08-22 15:12:14

I don't really visit them on purpose, but this forum keeps showing up when searching linux-related problems:

If I have questions related to Arch and no luck googling (ixquicking?), I usually post first at the archbang forums - I really can't stand the perpetual pissing contests at arch forums.

#23 Re: Feedback & Suggestions » Shouldn't the default browser be one that can update easily? » 2012-08-18 14:07:55

I think this is about Iceweasel usually being behind FF's most recent version. Some homepages complain about that, citing security issues.
Somewhere here on the forums should be a how-to on installing FF's binary on #!, or any debian-based system. Can't be bothered to look for it now, it's way too hot here.

#24 Re: News & Announcements » Updated Waldorf "Testing" images: 20120806 » 2012-08-09 10:24:04

I am having the same problem as reported here: Live works fine, but the installer won't advance past "Detect disks". The old testing release installed just fine.
I was trying to install it on a fairly new laptop with  a 1TB HD, Windows 7 and Waldorf-20120430 already installed.
If you need any more information, or if there's anything I should/could try please let me know.

#25 Re: Off Topic / General Chat » What are you looking at right now? » 2012-08-02 12:37:50

I am looking at the cb-welcome script running on my new laptop. Kinda boring, but in an exciting way wink

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo