Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable USB always on? #39

Closed
MerlijnWajer opened this issue Oct 5, 2018 · 13 comments
Closed

Enable USB always on? #39

MerlijnWajer opened this issue Oct 5, 2018 · 13 comments

Comments

@MerlijnWajer
Copy link

For a while now, USB always on is supported in coreboot: https://review.coreboot.org/cgit/coreboot.git/commit/src/mainboard/lenovo/x230/cmos.default?id=7ffb329f278d6b027bb3b3660b69e87f1ddd69d8

But the default config does not enable it. Would it make sense to enable here? I personally find it a very useful feature.

@merge
Copy link
Owner

merge commented Oct 5, 2018

sure. I'd be happy about a patch. Otherwise I might look into it next week. thanks

@MerlijnWajer
Copy link
Author

The patch would be only on the skulls build side, right? Not a coreboot patch? I am assuming it would be something like sed -i 's/usb_always_on=Disable/usb_always_on=Enable/' src/mainboard/lenovo/x230/cmos.default ?

@nemanjan00
Copy link

You can enable it using nvramtool :D

@merge
Copy link
Owner

merge commented Oct 8, 2018

@MerlijnWajer changing a git-tracked file in coreboot is not really an option. We could think about putting a patch up for review to enable this by default...

In the meantime: Can we configure this at build-time? Or do we have to build and ship nvramtool and let the user (a script) run it after flashing?

thanks

@MerlijnWajer
Copy link
Author

Putting up a patch for review that enables it by default would work. I think the build-time configuration simply requires changing the cmos.default file.

That said, I've been trying to make this work with nvramtool, and it doesn't work yet for me. Might be because I disabled ME (but this is maybe not the right place to figure out why it's not working):

# ./nvramtool -a | grep usb
usb_always_on = AC and battery

@merge
Copy link
Owner

merge commented Oct 10, 2018

I can confirm that ./nvramtool -w usb_always_on="AC and battery" (or "AC only") doesn't work -.- Unless there's a bug in nvramtool I doubt that changing the default file would help...

@MerlijnWajer
Copy link
Author

Sounds like that will first need to be resolved, then... Just to check - do you have the ME removed/disabled?

@merge
Copy link
Owner

merge commented Oct 10, 2018

I have me_cleaner -S applied.

@merge
Copy link
Owner

merge commented Nov 13, 2018

this might be related here. Maybe we can test that for the x230: https://ticket.coreboot.org/issues/171

edit: today's build with said commit reverted doesn't help for me...

@MerlijnWajer
Copy link
Author

Maybe it would be good to add this information to the ticket (that revert on the x230, doesn't help?). Thanks for testing, btw.

@merge
Copy link
Owner

merge commented Jan 18, 2019

actually, it is charging during standby for me...

@MerlijnWajer
Copy link
Author

Let me try the latest release and confirm...

@MerlijnWajer
Copy link
Author

Yes, now it works, using latest release! I think this can be closed.

@merge merge closed this as completed Jan 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants