Wie mache ich permanente Änderungen an / sys / devices / platform /?

1578
draw

Ich konfiguriere den Trckpoint meines Thinkpads mit dem folgenden Befehl:

sudo echo -n 120 > /sys/devices/platform/i8042/serio1/serio2/speed sudo echo -n 255 > /sys/devices/platform/i8042/serio1/serio2/sensitivity 

Aber ich muss es nach dem Neustart ausführen. Gibt es diese Änderung dauerhaft?

1

2 Antworten auf die Frage

0
mdpc

Sie könnten diese zu einem Startskript hinzufügen, das beim Booten ausgeführt wird. Das wäre am einfachsten.

Eine andere Möglichkeit wäre, den Linux-Kernel neu zu kompilieren und die Standardeinstellungen dieser Parameter so einzustellen, wie Sie es wünschen.

0
davidgo

As @mdpc says, the best way to do that is in the startup script. I've done something similar (this should work on most distros).

Add the following lines to /etc/rc.local anywhere before the last line "exit 0" (If exit 0 does not exist, just add them to the file)

echo -n 120 > /sys/devices/platform/i8042/serio1/serio2/speed echo -n 255 > /sys/devices/platform/i8042/serio1/serio2/sensitivity

Hallo David, ich habe versucht die 2 Zeilen in `/ etc / rc.local 'zu pu aber nach dem Neustart hat es nicht funktioniert ... Ich verwende Linux Mint draw vor 11 Jahren 0
Sieht aus, als wäre meine Formatierung gemuntert worden - haben Sie das als 1 Zeile oder 2 eingegeben? (Vor dem zweiten Echo sollte ein Zeilenumbruch erfolgen). davidgo vor 11 Jahren 0
Hier ist meine Datei: http://pastebin.com/VHqg9eik draw vor 11 Jahren 0
That looks correct to me. Not sure what to advise from here. The obvious thing to check is if the script is running. You can do this by adding a line "/bin/date > /tmp/date.log" before the exit 0 and rebooting. If it creates/adds to a file /tmp/date.log on reboot with the date inside then the script is running on startup, if not we could investigate why. (Are the permissions set correctly on /etc/rc.local - chmod 755 /etc/rc.local ?) If it is running, maybe something is overriding your config ? davidgo vor 11 Jahren 0
Eh ... Scheint es läuft jetzt ... draw vor 11 Jahren 0