Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-17-2021, 04:35 AM
|
#1
|
LQ Newbie
Registered: Sep 2020
Posts: 23
Rep: 
|
problems with acpi irq, boot freezes
Hi,I am trying to install Gentoo onto two different laptops (Lenovo and HP), both with Intel CPU and integrated graphics. The problem is that the boot hangs forever as early as at boot runlevel (I use openRC as init). I tried to search for parameters to add at the GRUB kernel boot line and found out that only "acpi=noirq" AND "noapic" work. So I assume that this is a problem with ACPI and interrupts. However 1) this only happens with Gentoo, other distros boot normally, 2) it doesn't really fix the issue and 3) I don't really know if keeping these parameters is harmless for my hardware in the long run.
Here is the ACPI section of my kernel configuration (I have left everything as recommended by Gentoo wiki):
Code:
#
# Power management and ACPI options
#
CONFIG_ARCH_HIBERNATION_HEADER=y
CONFIG_SUSPEND=y
CONFIG_SUSPEND_FREEZER=y
CONFIG_HIBERNATE_CALLBACKS=y
CONFIG_HIBERNATION=y
CONFIG_HIBERNATION_SNAPSHOT_DEV=y
CONFIG_PM_STD_PARTITION=""
CONFIG_PM_SLEEP=y
CONFIG_PM_SLEEP_SMP=y
CONFIG_PM_AUTOSLEEP=y
CONFIG_PM_WAKELOCKS=y
CONFIG_PM_WAKELOCKS_LIMIT=100
CONFIG_PM_WAKELOCKS_GC=y
CONFIG_PM=y
# CONFIG_PM_DEBUG is not set
CONFIG_PM_CLK=y
CONFIG_PM_GENERIC_DOMAINS=y
# CONFIG_WQ_POWER_EFFICIENT_DEFAULT is not set
CONFIG_PM_GENERIC_DOMAINS_SLEEP=y
CONFIG_ENERGY_MODEL=y
CONFIG_ARCH_SUPPORTS_ACPI=y
CONFIG_ACPI=y
CONFIG_ACPI_LEGACY_TABLES_LOOKUP=y
CONFIG_ARCH_MIGHT_HAVE_ACPI_PDC=y
CONFIG_ACPI_SYSTEM_POWER_STATES_SUPPORT=y
# CONFIG_ACPI_DEBUGGER is not set
CONFIG_ACPI_SPCR_TABLE=y
CONFIG_ACPI_LPIT=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_REV_OVERRIDE_POSSIBLE=y
# CONFIG_ACPI_EC_DEBUGFS is not set
CONFIG_ACPI_AC=m
CONFIG_ACPI_BATTERY=m
CONFIG_ACPI_BUTTON=m
CONFIG_ACPI_TINY_POWER_BUTTON=m
CONFIG_ACPI_TINY_POWER_BUTTON_SIGNAL=38
CONFIG_ACPI_VIDEO=m
CONFIG_ACPI_FAN=m
CONFIG_ACPI_TAD=m
CONFIG_ACPI_DOCK=y
CONFIG_ACPI_CPU_FREQ_PSS=y
CONFIG_ACPI_PROCESSOR_CSTATE=y
CONFIG_ACPI_PROCESSOR_IDLE=y
CONFIG_ACPI_CPPC_LIB=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_IPMI=m
CONFIG_ACPI_HOTPLUG_CPU=y
CONFIG_ACPI_PROCESSOR_AGGREGATOR=m
CONFIG_ACPI_THERMAL=m
CONFIG_ARCH_HAS_ACPI_TABLE_UPGRADE=y
CONFIG_ACPI_TABLE_UPGRADE=y
# CONFIG_ACPI_DEBUG is not set
# CONFIG_ACPI_PCI_SLOT is not set
CONFIG_ACPI_CONTAINER=y
CONFIG_ACPI_HOTPLUG_MEMORY=y
CONFIG_ACPI_HOTPLUG_IOAPIC=y
CONFIG_ACPI_SBS=m
CONFIG_ACPI_HED=y
# CONFIG_ACPI_CUSTOM_METHOD is not set
CONFIG_ACPI_BGRT=y
CONFIG_ACPI_NFIT=m
# CONFIG_NFIT_SECURITY_DEBUG is not set
CONFIG_ACPI_NUMA=y
CONFIG_ACPI_HMAT=y
CONFIG_HAVE_ACPI_APEI=y
CONFIG_HAVE_ACPI_APEI_NMI=y
CONFIG_ACPI_APEI=y
CONFIG_ACPI_APEI_GHES=y
CONFIG_ACPI_APEI_PCIEAER=y
CONFIG_ACPI_APEI_MEMORY_FAILURE=y
# CONFIG_ACPI_APEI_EINJ is not set
# CONFIG_ACPI_APEI_ERST_DEBUG is not set
CONFIG_ACPI_DPTF=y
CONFIG_DPTF_POWER=m
CONFIG_DPTF_PCH_FIVR=m
CONFIG_ACPI_WATCHDOG=y
CONFIG_ACPI_EXTLOG=m
CONFIG_ACPI_ADXL=y
CONFIG_ACPI_CONFIGFS=m
CONFIG_PMIC_OPREGION=y
# CONFIG_XPOWER_PMIC_OPREGION is not set
# CONFIG_BXT_WC_PMIC_OPREGION is not set
CONFIG_CHT_DC_TI_PMIC_OPREGION=y
CONFIG_X86_PM_TIMER=y
CONFIG_SFI=y
|
|
|
06-17-2021, 01:24 PM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,534
|
'Early in the boot' isn't really good enough. In the early stages - The PC comes on , stretches itself does POST, and throws up grub
- The kernel boots next, finds basic hardware, mounts / and loads init
- init finds all the peripherals, etc.
That's the abbreviated version, as it's more complicated but they are the main stages you see.
ACPI or acpid is a daemon started in the init stage. the apic is a programmable interrupt controller, so don't confuse them. Which stage do you get trouble in?
|
|
|
06-17-2021, 04:35 PM
|
#3
|
LQ Newbie
Registered: Sep 2020
Posts: 23
Original Poster
Rep: 
|
After openRC completes the sysint runlevel and enters the boot runlevel the process hangs forever. Because I have to add both parameters (noapic and apci=noirq) to the kernel in order to boot normally, it means that 1) ACPI is not able to handle IRQ routing (apci=noirq) and 2) the system can only look for the $PIR table to get the interrupt routing information. However I don't really have an explanation as to why this occurs...it never happened with any other distro.
|
|
|
06-18-2021, 08:00 AM
|
#4
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,534
|
ACPI is a software daemon; it's hardware that needs interrupts, unless you're talking about software interrupts. I think the days when 'acpi=noirq' would be of much assistance are gone, although there remain some kernel quirks for buggy portions of ACPI.
ACPI reacts to acpi events, and these can be linked to acpi actions. The way to get a handle on this behaviour is as follows. One laptop at a time, stop acpid, then run it as 'acpid -l. That logs events. Put a 'tail -f <file>' command on that, which should you seeing the events on the new log lines. Closing the lid is an acpi event, but if you open it quickly, nothing is done. But that should be logged as an acpi event. You can then link events to scripts, or configure whatever power manager your particular window manager has. Go through setting it up once, then don't fix it!
Last edited by business_kid; 06-18-2021 at 08:58 AM.
|
|
1 members found this post helpful.
|
06-19-2021, 12:51 PM
|
#5
|
LQ Newbie
Registered: Sep 2020
Posts: 23
Original Poster
Rep: 
|
Thanks for your suggestion and explanation, unfortunately I carefully inspected the rc.log and messages files in /var/log,but acpid did not log any error. My guess is that there is something wrong between BIOS and the kernel, but I have been using the same kernel branches with other distros and they all worked fine. BTW, the BIOS is up to date and I have found out that passing my parameters to the kernel line at boot won't get my touchpad working, so the workaround is not valid anymore.
|
|
|
06-19-2021, 01:49 PM
|
#6
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,534
|
There's not enough detail there for me to make much sense of the situation. I don't even know if you found the log where a lid closure was recorded. "Other distros work" appears to be your solution. If other distros work, use them. I don't know why you're using OpenRC, but this would be a good time to eliminate that as a possible cause. To faultfind the situation remotely, readers of your posts need to know the facts, with relevant pastes.
|
|
1 members found this post helpful.
|
06-20-2021, 10:45 AM
|
#7
|
LQ Newbie
Registered: Sep 2020
Posts: 23
Original Poster
Rep: 
|
In the end I think that the kernel is the real culprit. I tried to downgrade it to an old LTS build and it works for now, so I should be waiting for the packagers to fix the new version. Marking as (half-)solved.
|
|
|
All times are GMT -5. The time now is 11:36 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|