User:Sixwheeledbeast/Scripts: Difference between revisions
From Maemo Wiki Mirror
imported_>sixwheeledbeast No edit summary |
imported_>sixwheeledbeast No edit summary |
||
| (9 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
===On fresh system to purge "Unwanted" software=== | |||
Removes cherry, installers, tutorials, widgets and sharing rubbish. | Removes cherry, installers, tutorials, widgets and sharing rubbish. | ||
| Line 8: | Line 8: | ||
===Unlock Camera key while locked (Doesn't persist reboot)=== | |||
''Thanks vi_'' | ''Thanks vi_'' | ||
| Line 19: | Line 19: | ||
</pre> | </pre> | ||
===Disable proximity sensor=== | |||
'''List Saved WLAN passphrases | ''Phone application resets this after a call'' | ||
<pre> | |||
sudo gainroot | |||
chmod 666 /sys/devices/platform/gpio-switch/proximity/disable | |||
echo 0 > /sys/devices/platform/gpio-switch/proximity/disable | |||
chmod 444 /sys/devices/platform/gpio-switch/proximity/disable | |||
</pre> | |||
===List Saved WLAN passphrases=== | |||
<pre> | <pre> | ||
gconftool -R /system/osso/connectivity/IAP | grep passphrase | gconftool -R /system/osso/connectivity/IAP | grep passphrase | ||
</pre> | |||
===List Saved Email passwords=== | |||
<pre> | |||
gconftool-2 -R /apps/modest/server_accounts | grep password | |||
</pre> | |||
===Adding extra keys to x-term bar=== | |||
Removes PgUp and PgDn and adds pipe, greater, asciitilde and grave. | |||
Maximum 7 characters can be added. | |||
<pre> | |||
gconftool-2 -s /apps/osso/xterm/keys -t list --list-type=string "[Tab,Escape,KP_Enter,bar,greater,asciitilde,dead_grave]" | |||
gconftool-2 -s /apps/osso/xterm/key_labels -t list --list-type=string "[Tab,Esc,CR,|,>,~,\`]" | |||
</pre> | |||
===Live proximity state in terminal=== | |||
<pre> | |||
while true; do cat /sys/devices/platform/gpio-switch/proximity/state; done | |||
</pre> | |||
===Live back cover state in terminal=== | |||
<pre> | |||
while true; do cat /sys/devices/platform/mmci-omap-hs.0/mmc_host\:mmc0/cover_switch; done | |||
</pre> | |||
===Live Slide State in terminal=== | |||
<pre> | |||
while true; do cat /sys/devices/platform/gpio-switch/slide/state; done | |||
</pre> | |||
===Rebuild annoying media tracker and thumbnails=== | |||
<pre> | |||
rm -f /home/user/.cache/media-art/*.* | |||
rm -f /home/user/.thumbnails/cropped/*.* | |||
rm -rf /media/mmc1/Music/*/*/.mediaartlocal | |||
tracker-processes -r | |||
</pre> | |||
===SSH screenshot=== | |||
<pre> | |||
gst-launch-0.10 ximagesrc num-buffers=1 ! ffmpegcolorspace ! pngenc ! filesink location=screenshot.png | |||
</pre> | </pre> | ||
Latest revision as of 21:05, 25 June 2019
On fresh system to purge "Unwanted" software
Removes cherry, installers, tutorials, widgets and sharing rubbish.
apt-get remove --purge cherry ap-installer amazon-installer foreca-installer facebook-installer skype-installer dtg-installer tutorial-home-applet osso-tutorial-l10n-engb osso-tutorial-l10n-ptpt osso-tutorial-l10n-frca osso-tutorial-l10n-nlnl osso-tutorial-l10n-cscz osso-tutorial-l10n-itit osso-tutorial-l10n-eses osso-tutorial-l10n-svse osso-tutorial-l10n-frfr osso-tutorial-l10n-dede osso-tutorial-l10n-fifi osso-tutorial-l10n-nono osso-tutorial-l10n-esmx osso-tutorial-l10n-enus osso-tutorial-l10n-ruru osso-tutorial-l10n-mr0 osso-tutorial-l10n-plpl osso-systemui-splashscreen sharing-service-flickr sharing-service-ovi chinese-font google-search-widget tutorial-home-applet ovi-promotion-widget
Unlock Camera key while locked (Doesn't persist reboot)
Thanks vi_
sudo gainroot chmod 666 /sys/devices/platform/gpio-switch/cam_focus/disable echo 0 > /sys/devices/platform/gpio-switch/cam_focus/disable chmod 444 /sys/devices/platform/gpio-switch/cam_focus/disable
Disable proximity sensor
Phone application resets this after a call
sudo gainroot chmod 666 /sys/devices/platform/gpio-switch/proximity/disable echo 0 > /sys/devices/platform/gpio-switch/proximity/disable chmod 444 /sys/devices/platform/gpio-switch/proximity/disable
List Saved WLAN passphrases
gconftool -R /system/osso/connectivity/IAP | grep passphrase
List Saved Email passwords
gconftool-2 -R /apps/modest/server_accounts | grep password
Adding extra keys to x-term bar
Removes PgUp and PgDn and adds pipe, greater, asciitilde and grave. Maximum 7 characters can be added.
gconftool-2 -s /apps/osso/xterm/keys -t list --list-type=string "[Tab,Escape,KP_Enter,bar,greater,asciitilde,dead_grave]" gconftool-2 -s /apps/osso/xterm/key_labels -t list --list-type=string "[Tab,Esc,CR,|,>,~,\`]"
Live proximity state in terminal
while true; do cat /sys/devices/platform/gpio-switch/proximity/state; done
Live back cover state in terminal
while true; do cat /sys/devices/platform/mmci-omap-hs.0/mmc_host\:mmc0/cover_switch; done
Live Slide State in terminal
while true; do cat /sys/devices/platform/gpio-switch/slide/state; done
Rebuild annoying media tracker and thumbnails
rm -f /home/user/.cache/media-art/*.* rm -f /home/user/.thumbnails/cropped/*.* rm -rf /media/mmc1/Music/*/*/.mediaartlocal tracker-processes -r
SSH screenshot
gst-launch-0.10 ximagesrc num-buffers=1 ! ffmpegcolorspace ! pngenc ! filesink location=screenshot.png
No categories.