Comments (15)
@vvaltchev
Lenovo:
- Set the physical switch to OFF.
- Boot Windows
- Set the physical switch to ON. See the photo above.
- Connect WiFi
- Disconnect WiFi
Let this be the last attempt, because for now it doesn't matter -:).
Best regards,
Vladimir
from tilck.
OK, ACPI power events are not really supported at the moment. So, I'm not surprised to see the GPE appear inconsistently. I never had enough time to spend on this. The lid open/close events don't work.
In my understanding, the problem is that Tilck does not implement the address space for the embedded controller (EC). Without it, many things don't work properly.
The poweroff instead, should work.
from tilck.
Just one thing, could you try to take photos in focus? I know it's a minor detail, but text is hard to read :-)
from tilck.
Sorry, my phone is too old to get good shots. Will use a separate camera next time.
from tilck.
Tried Alpine Linux on Amilo book (see above). poweroff and poweroff -f work ok (black screen and no led light).
from tilck.
Not surprised, Linux has a huge HW support. It runs on almost anything and has a huge base of beta-testers. Tilck is mostly tested on just the machines I personally own :-)
Anyway, yeah, the poweroff not working is definitively a Tilck bug. The other things related to GPE events are in the "not yet implemented" category.
from tilck.
@duselguy I didn't have time to look at the bug with the ACPI poweroff, but I noticed that poweroff -f
and reboot -f
didn't behave properly due to a small bug of mine and could get stuck. Again, this doesn't fix this ACPI-related bug, but it's something.
from tilck.
Thank you,
- poweroff, poweroff -f, reboot, reboot -f work as expected now.
- The problem with ACPI/POWER/LED (see above) is left until better times.
Regards,
Vladimir
P.S. Was tested at commit 0a3159d .
from tilck.
That's great, thank you Vladmir!!
I'm closing this issue because what mattered was to get poweroff and reboot to work on your machine too.
The rest is in a long TODO list :-)
from tilck.
Investigation Power/Led problem on Amilo UI 3520 :
- Typo in osl_misc.c (AcpiOsEnterSleep):
printk("ACPI sleep: %u, 0x%x, 0x%x\n", SleepState, RegaValue, RegaValue);
- PM1A register looks ok (PM1B is not used really): 0x1c01 then 0x3c01
From the doc:
1) The following hot keys or key combinations are available:
Fn+F1
WLAN/Bluetooth® on/off
2) Status indicators:
WLAN / Bluetooth®
Blue: on; None: off
If this indicator is on then it and power indicator are still on after poweroff command. If this indicator if off then power indicator is off after poweroff command.
from tilck.
That’s interesting. I missed this update.
So poweroff works, but just the leds might remain ON depending on their previous state, right?
from tilck.
@vvaltchev
Almost so :-)
Scenarios:
- Press the power button. Both indicators are on: power and Wi-Fi. We boot and issue the poweroff command: the screen goes blank, but both indicators (power and Wi-Fi) remain on.
- Press the power button. Only the power indicator is on. We boot and issue the poweroff command: the screen and the power indicator go out.
Trick:
To execute scenario 2), you must forbid WI-Fi ability before booting using the function key combination (after that the Wi-Fi indicator is off).
Conclusion:
It looks like in scenario 1) the current ACPI related code (after poweroff command) is not enough to really power off the netbook - both indicators (power and Wi-Fi) remain on.
from tilck.
@duselguy Thanks for the investigation, Vladimir. The whole picture makes perfectly sense. In order to function properly on all devices, poweroff requires first powering off some ACPI devices, like the Wi-Fi network device in your case. Tilck does nothing like that at the moment and completely relies on ACPI to do everything automatically. Unfortunately, it's not that simple sometimes.
I'll keep that in mind as a future TOD task.
from tilck.
@vvaltchev
I don't quite understand the purpose/behavior of the WiFi indicator on this netbook. Usually this LED should be on if we have a WiFi connection. In our case, it is also used to show whether WiFi connection is possible or not.
Summary:
- Amilo
1.1. Tilck: The behavior of the poweroff command is described in my previous comment.
1.2. Alpine Linux: poweroff command turns off both LEDs (power and WiFi). - Lenovo (has a physical switch, if it is turned on, the corresponding WiFi indicator is off, and this is understandable).
2.1. Tilck:
The poweroff command turns off the power LED and is independent of the state (on/off) of the WiFi physical switch.
from tilck.
@duselguy The WiFi indicator typically shows if the WiFi network adapter is turned on. That was nothing to do with the WiFi connection. The hotkey combination that you discovered allows you to turn on/off your WiFi hardware.
The purpose of that is AirPlane mode etc.
from tilck.
Related Issues (20)
- Compile-out print_banner_line() and show_tilck_logo() when KERNEL_SHOW_LOGO=0 HOT 4
- Don't download twice codecov in coverage_build.yml HOT 3
- Write a unit test to trigger the error code path in fork_dup_all_handles() HOT 2
- Move kernel/fs/fat32_debug.c to tests/unit/ HOT 4
- small typo in the wiki micropython page HOT 1
- Add system tests for sys_setuid() and friends HOT 1
- Move other/musl-gcc and other/musl-g++ to scripts/templates HOT 3
- Contribution documentation is not easily found HOT 2
- Warn not to mock and wrap the same function in mocking_experiments.cpp HOT 2
- Add unit tests for functions in string_util.c HOT 4
- Add tests for simple_wildcard_match() and set_traced_syscalls_int()
- Add tests for save_param_buffer() and dump_param_buffer() HOT 2
- Unable to build on Ubuntu 21.10 HOT 5
- Distro required HOT 6
- BusyBox build error HOT 5
- Can't build: /scripts/build_toolchain "too many arguments"? HOT 7
- The newest `getrusage` test failed once on Azure Pipelines HOT 5
- [feature request] Interactive build HOT 5
- Ability to add files to the created image [feature request] HOT 7
- ./toolchain-wrapper: cannot execute: required file not found HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tilck.