[SOLVED] Battery drain after poweroff

This forum is for supported devices using an ARMv7 Samsung SoC.

[SOLVED] Battery drain after poweroff

Postby Nyutag » Mon Aug 25, 2014 11:56 pm

I don't know if the battery can't hold the charge or just the laptop power itself up until all the battery is drained but I can't trust my laptop anymore. After a day without use it, the battery is full discharged.

This appen since I removed chromeos and boot from the MMC.

Is anyone had the same issue?

Maybe if I disable the powerup effect resulting in opening the laptop but I don't know if that even possible with this hardware.

EDIT : Solution in last past, thank to Polichronucci
Last edited by Nyutag on Thu Oct 02, 2014 5:44 pm, edited 1 time in total.
Nyutag
 
Posts: 8
Joined: Mon Aug 25, 2014 11:20 pm

Re: Battery drain after poweroff

Postby doragasu1 » Wed Aug 27, 2014 7:20 am

This is the biggest problem I have with this laptop. I couldn't fix it, I have even tried removing the magnet in the screen frame to disable the "power on open" feature, but that has not helped :cry:
doragasu1
 
Posts: 100
Joined: Sun Jun 03, 2012 3:52 pm

Re: Battery drain after poweroff

Postby Polichronucci » Thu Aug 28, 2014 5:56 pm

I had the same issue for a long time finally managed to partially solve it using a simple UBoot script. I have flashed the nv-UBoot so I have full controll of the UBoot console, check https://wiki.archlinux.org/index.php/Samsung_Chromebook_(ARM)#How_to_flash_U-Boot.

For me the /boot partition is the first on the eMMC (mmcblk0p1, mmc 0:1), and the root partition is the second on the eMMC (mmcblk0p2).

Create a file boot.scr containing:
$this->bbcode_second_pass_code('', '
setenv 1 'setenv bootargs root=/dev/mmcblk0p2 rootfstype=ext4 rootwait rw quiet; mmc dev 0; ext2load mmc 0:1 42000000 vmlinux.uimg; bootm 42000000'

if sleep 8; then vboot_test poweroff; fi
')
Then install the uboot-tools package and run as root:
$this->bbcode_second_pass_code('', 'mkimage -A arm -T script -C none -n 'Chromebook Boot Script' -d {path to boot.scr file} /boot/boot.scr.uimg')
This will create the script file that UBoot must run upon startup.

In the UBoot Prompt.

Autoload the script.
$this->bbcode_second_pass_code('', '
setenv arch_boot 'mmc dev 0; ext2load mmc 0:1 40000000 boot.scr.uimg; source 40000000'
setenv bootcmd 'run arch_boot'
saveenv
')
Now your Chromebook will startup and hang on UBoot for 8 seconds, after that it will poweroff, its a hack. When you actually want to boot your Chromebook you have to press Ctrl+C, and then you will need to run the enviroment variable command named "1".
$this->bbcode_second_pass_code('', 'run 1')

There is still an issue which has never happened to me but is possible in theory. If a random key is pressed and then the laptop powers on, the UBoot console hangs and the script wont run. Im still workng on this but it is a really rare case.
Last edited by Polichronucci on Mon Sep 08, 2014 6:28 pm, edited 8 times in total.
Polichronucci
 
Posts: 31
Joined: Wed Oct 09, 2013 10:47 am

Re: Battery drain after poweroff

Postby WarheadsSE » Thu Aug 28, 2014 8:00 pm

Hack is the word.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Battery drain after poweroff

Postby Nyutag » Thu Sep 18, 2014 6:39 pm

Sorry for the late reply.

I have tested your solution and unfortunately, the trouble are still the same but seems to happen be less often.

But maybe I also need to disable the auto power-on feature when open.

Anyways, thanks for the script and for your reply.
Nyutag
 
Posts: 8
Joined: Mon Aug 25, 2014 11:20 pm

Re: Battery drain after poweroff

Postby Nyutag » Wed Sep 24, 2014 12:48 am

I may I found a way to bypass the issue. I m testing the hibernate mode.
Nyutag
 
Posts: 8
Joined: Mon Aug 25, 2014 11:20 pm

Re: Battery drain after poweroff

Postby Polichronucci » Thu Sep 25, 2014 11:38 am

Is everything working as it should? I mean, is the Chromebook auto powering off after 8 secs from power on? When it happens have you noticed any characters on the uboot prompt? I'm surprised becausse since I run my Chromebook this way I never had an issue again.
Polichronucci
 
Posts: 31
Joined: Wed Oct 09, 2013 10:47 am

Re: Battery drain after poweroff

Postby Nyutag » Mon Sep 29, 2014 5:10 pm

I use a custom alias witch is supposed to do the same.

It when poweroff quickly. I have not the time to read the output.

And after few testing, I still have the same issue with the hibernation. Some time, I just have a black screen, sometime, no power.

I think its wake up by itself in my van and just drain off. I notice that if I stop using it for a few minute, it going into sleep mode and I can't wake it up. Maybe if I found a way to make it go in hibernation instead of sleeping, my problem will be solved.
Nyutag
 
Posts: 8
Joined: Mon Aug 25, 2014 11:20 pm

Re: Battery drain after poweroff

Postby Nyutag » Tue Sep 30, 2014 11:31 pm

I think I have resolved the issue. I can't make your script working but it's working if I make all from the uboot prompt.

$this->bbcode_second_pass_code('', 'setenv 1 'setenv bootargs root=/dev/mmcblk0p2 rootfstype=ext2 rootwait rw; mmc dev 0; ext2load mmc 0:1 42000000 vmlinux.uimg; bootm 42000000'
setenv bootcmd 'if sleep 5; then vboot_test poweroff; fi'
saveenv')

Thanks you very much for your help! It's a dirty hack but if it's working, I take it!
Nyutag
 
Posts: 8
Joined: Mon Aug 25, 2014 11:20 pm

Re: [SOLVED] Battery drain after poweroff

Postby Polichronucci » Thu Oct 02, 2014 7:36 pm

My post is way to complex without it being necessery. Sorry for that but I sent the way I work my Chromebook which is using a script to boot so I can change things without using the uBoot prompt. I am glad my info was usefull, and you solved the most anoying problem of this chromebook. I will set your post on the wiki.
Polichronucci
 
Posts: 31
Joined: Wed Oct 09, 2013 10:47 am

Next

Return to Samsung

Who is online

Users browsing this forum: No registered users and 21 guests