I ran upower --dump, and got a crazy battery temperature. battery: present: yes ... voltage: 12.538 V percentage: 100% temperature: 3000 degrees C
After apply the patch, I got a normal result. temperature: 30 degrees C diff -ruN linux/drivers/platform/mips/yeeloong_laptop.c linux-fixed/drivers/platform/mips/yeeloong_laptop.c --- linux/drivers/platform/mips/yeeloong_laptop.c 2014-01-01 19:21:06.356567382 +0800 +++ linux-fixed/drivers/platform/mips/yeeloong_laptop.c 2014-01-01 19:21:33.672607421 +0800 @@ -168,7 +168,7 @@ static int get_bat_temp(void) { - return get_bat_l(TEMPERATURE) * 1000; + return get_bat_l(TEMPERATURE) * 10; } static int get_bat_current(void) -- You received this message because you are subscribed to the Google Groups "loongson-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to loongson-dev+unsubscr...@googlegroups.com. To post to this group, send email to loongson-dev@googlegroups.com. Visit this group at http://groups.google.com/group/loongson-dev. For more options, visit https://groups.google.com/groups/opt_out.