0

I don't use WIFI and touch-pad much, every time my laptop Lenovo Z50-70 starts I switch off WIFI and disable touchpad with hardware keys ( Fn+ XX). But these two settings gets reset on reboot and resume from suspend. How do I make these settings permanent until I toggle them?

Alex Jones
  • 7,982
  • 9
  • 55
  • 94
  • Have you tried turning WiFi off with the switch in the menu bar and turning the touchpad off in Mouse settings? By the way, fn keys aren't hardware; they're software. – TheWanderer Apr 16 '15 at 22:26
  • @Zacharee1 yeah i tried switching off wifi from menu bar but same problem as with the hardware keys – Alex Jones Apr 16 '15 at 22:52
  • 1
    How about the mousepad? If you want, you could try following the instructions at this link: http://askubuntu.com/questions/112968/automatically-disable-wifi-wireless-when-wired – TheWanderer Apr 16 '15 at 23:22
  • I know it's for 11.10, but it's worth a shot. – TheWanderer Apr 16 '15 at 23:23

1 Answers1

0

For both, if you are sure you don't want to use them you may be able blacklist the drivers of those pieces of hardware so they are not loaded on boot - blacklisting drivers is explained in full here. To determine the driver of the WiFi use lspci -k or lshw -C network, and blacklist the WiFi's driver module (You may also be able to do this with the 'Additional Drivers' GUI).
The (rather big) flaw with this method is what happens when you find you do need those pieces of hardware (particularly without a touchpad). You should be able to reload the modules using sudo modprobe MODULE in a TTY.
If you really never want to use that hardware, you could remove the driver packages, but this almost guarantees you will need them at a later date.
You could also use rfkill and run it on boot similar to the method here.

For the touchpad this is more complicated with drivers, but you could use xinput to disable the touchpad:

xinput --disable ID

You can determine the ID of the touchpad from xinput -list
This might not work system-wide from /etc/rc.local, so instead you could use ~/.profile so it disables the touchpad on login.

Another method may be to send the signal's the key's send, though this is probably very difficult as this probably is in the hardware not the software - this may help though.

Wilf
  • 30,194
  • 17
  • 108
  • 164