Cerca qui le cose strambe

2018-10-12

rumore di fondo con cuffie wireless DECT in ubuntu

se vi capita di sentire un forte rumore di fondo quando usate delle cuffie DECT con ubuntu...

potrebbe essere che dovete abbassare il volume del device che e` al 100% (mentre il generale non e` sopra il 20/30%)
nel caso potete seguire la procedura come spiegata meglio qui

  1. lanciate il comando in ascii graph
    alsamixer
  2. passate al device in questione
  3. abbassate il volume
  4. uscite
  5. per registrare il cambiamento lanciate
    sudo alsactl store
  6. non ho ancora verificato che al reboot successivo la modifica sia stata mantenuta... ma l'articolo che ho trovato e` di 4 mesi fa quindi mi auguro che abbiano gia` rilasciato la patch relativa :-)

2018-10-08

provide automatic keyboard and mouse input in X

Do you need programmatically schedule some keyboard and mouse input in linux?
Look no further
xdotool is the solution :-)
the installation is as easy as typing

sudo apt-get install xdotool

and assuming you need to do a (left) click on the mouse but only 10 seconds after you left your desk:

sleep 10 ; xdotool click 1

Bonus
obviously it also work if you have to send the commands in a RDP session :-)