Git Product home page Git Product logo

Comments (15)

duselguy avatar duselguy commented on May 17, 2024 1

@vvaltchev
Lenovo:

  1. Set the physical switch to OFF.
  2. Boot Windows
    SAM_0606
  3. Set the physical switch to ON. See the photo above.
  4. Connect WiFi
    SAM_0607
  5. Disconnect WiFi
    SAM_0608

Let this be the last attempt, because for now it doesn't matter -:).
Best regards,
Vladimir

from tilck.

vvaltchev avatar vvaltchev commented on May 17, 2024

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.

vvaltchev avatar vvaltchev commented on May 17, 2024

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.

duselguy avatar duselguy commented on May 17, 2024

Sorry, my phone is too old to get good shots. Will use a separate camera next time.

from tilck.

duselguy avatar duselguy commented on May 17, 2024

Tried Alpine Linux on Amilo book (see above). poweroff and poweroff -f work ok (black screen and no led light).

from tilck.

vvaltchev avatar vvaltchev commented on May 17, 2024

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.

vvaltchev avatar vvaltchev commented on May 17, 2024

@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.

duselguy avatar duselguy commented on May 17, 2024

Thank you,

  1. poweroff, poweroff -f, reboot, reboot -f work as expected now.
  2. The problem with ACPI/POWER/LED (see above) is left until better times.
    Regards,
    Vladimir
    P.S. Was tested at commit 0a3159d .

from tilck.

vvaltchev avatar vvaltchev commented on May 17, 2024

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.

duselguy avatar duselguy commented on May 17, 2024

Investigation Power/Led problem on Amilo UI 3520 :

  1. Typo in osl_misc.c (AcpiOsEnterSleep):
    printk("ACPI sleep: %u, 0x%x, 0x%x\n", SleepState, RegaValue, RegaValue);
  2. 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.

vvaltchev avatar vvaltchev commented on May 17, 2024

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.

duselguy avatar duselguy commented on May 17, 2024

@vvaltchev
Almost so :-)

Scenarios:

  1. 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.
  2. 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.

vvaltchev avatar vvaltchev commented on May 17, 2024

@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.

duselguy avatar duselguy commented on May 17, 2024

@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:

  1. 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).
  2. 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.

vvaltchev avatar vvaltchev commented on May 17, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.