Thread: Aura H2O AutoShelf beta
View Single Post
Old 01-18-2015, 02:16 PM   #12
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by frostschutz View Post
Because for some strange reason, the value you set is the opposite of the value you get. So you set $originalrotation but get its opposite; cat rotate > rotate then sets the opposite and gets $originalrotation.
Thank you for the answer. This seems not be the case on the Glo, for instance.

Spoiler:
Code:
(none) login: root
[root@(none) ~]# cat /sys/class/graphics/fb0/rotate
0
[root@(none) ~]# echo 1 > /sys/class/graphics/fb0/rotate
[root@(none) ~]# cat /sys/class/graphics/fb0/rotate
1
[root@(none) ~]# echo 0 > /sys/class/graphics/fb0/rotate
[root@(none) ~]# cat /sys/class/graphics/fb0/rotate
0
[root@(none) ~]# cat /sys/class/graphics/fb0/rotate > /sys/class/graphics/fb0/ro
tate
[root@(none) ~]# cat /sys/class/graphics/fb0/rotate
0
[root@(none) ~]# # I started at this point nickel on the reader
[root@(none) ~]# cat /sys/class/graphics/fb0/rotate
3
[root@(none) ~]# echo 0 > /sys/class/graphics/fb0/rotate
[root@(none) ~]# cat /sys/class/graphics/fb0/rotate
0
[root@(none) ~]# echo 3 > /sys/class/graphics/fb0/rotate
[root@(none) ~]# cat /sys/class/graphics/fb0/rotate
3
tshering is offline   Reply With Quote