Linux: Caps Lock veya Num Lock LED ini Harddisk LED ine dönüştürmek (Convert CapsLock or NumLock LED to HDD LED)


Go to English version


Son dönemlerde piyasaya çıkan bazı laptoplarda Harddisk aktivitesini gösteren LED lamba olmuyor. Benim gibi bilgisayarının ne yaptığından her an haberdar olmak isteyenler için bu da çok can sıkıcı olabiliyor. Benim DELL Inspiron 3567 gibi bazı laptoplarda da maliyeti düşürmek için şarj durumunu gösteren power LED i ile harddisk hareketini gösteren HDD LED i birleştirip tek LED lambası üzerinden sunuyorlar. LED lambanın disk hareketini göstermesi için her seferinde Fn+H tuşlarına basmanız gerekiyor. Ancak Fn+H olayı Linux’ta çalışmadığı için başka bir çözüm bulmak gerekiyor. Yani Linux kullanırken diskin bir işlem yapıp yapmadığını LED den anlayamıyorsunuz.

Bu küçük ama mide bulandırıcı durumdan kurtulmak için epeyce araştırarak bulduğum çözümü sizlerle paylaşıyorum. Aşağıdaki komut caps lock LED ini HDD LED e dönüştürüyor. Yani bir disk hareketi olması durumunda caps lock tuşunun üzerinde bulunan LED lamba yanıp sönüyor. Umarım işinize yarar. Eğer erişim hatası alırsanız komutu root olarak veya sudo ile çalıştırmanız gerektiğini unutmayın.

echo ide-disk > /sys/class/leds/input4::capslock/trigger

Bu komutla capslock LED ini tetikleyen olayların belirlendiği dosyaya ide-disk ifadesini yazdırarak bir disk hareketi olması durumunda capslock LED inin tetiklenmesini sağlıyoruz.



Bu işlemin her açılışta otomatik olarak yapılmasını istiyorsanız crontab -e ile crontab dosyasını açıp komutu en alt satıra ekleyebilirsiniz.

Bu komuttaki “input4::capslock” kısmını kendinize göre değiştirmeniz gerekiyor. Root olarak oturum açtıktan sonra /sys/class/leds/ klasörüne girin. Hangi LED i HDD LED yapmak istiyorsanız bu klasörde görünen ismini bu kısma yazın. Bende Ubuntu 18.04 sürümünde ve Kali Linux ile çalıştığını da belirteyim. Farklı Linux dağıtımlarında da çalışacağını düşünüyorum.

necmettinaslan.blogspot.com

Deneyimleriniz ve sorunlarınızla ilgili yorumlarınızı yazmayı ihmal etmeyin.


English Version:

Some laptops that have recently appeared on the market do not have an LED lamp showing the Harddisk activity. This can be very annoying for those who want to understand what their computer can do like me. On my notebook, the DELL Inspiron 3567, there's only one LED lamp that can be used to view power charge and the harddisk movement. You to press Fn + H to display the movement of the disc. However, the Fn + H does not work in Linux and you have to find another solution. In other words, you can't understand from LED if the disc is doing a process on Linux.

I'm sharing the solution I've found quite a lot of research to get rid of this small but disgusting situation. The following command converts the caps lock LED to HDD LED. This means the LED lamp on the caps lock key flashes when there is a disc movement. Hopefully it will work for you. Note that if you get an access error, you must run the command as root or with sudo.

echo ide-disk > /sys/class/leds/input4::capslock/trigger

With this command, we enable the capslock LED to be triggered by printing the ide-disk expression to the file that triggers the capslock LED.

If you want to do this automatically every time you open PC, open crontab file with crontab -e and add the command to the bottom line.

You need to change "input4::capslock" in this command. After logging in as root, enter the /sys/class/leds/ folder. Write here the name of LED in this folder that you want to use as HDD LED. This worked for me at Ubuntu 18.04 and Kali Linux. I think it will work in different Linux distributions.

necmettinaslan.blogspot.com

Do not forget to write your comments about your experiences and problems.

Yorumlar

  1. selamlar... windows için çözüm var mıdır acaba :)

    YanıtlaSil

Yorum Gönder

Bu blogdaki popüler yayınlar

Linux : getwebfolder scriptim ile açık web klasörlerini kolayca indirin (Download open web folders with my getwebfolder script)

Boolean Cebiri ve Lojik Devrelere Uygulanması