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

power-management/switch_power_mode failed in pc-sanity #1656

Open
1 task done
binli opened this issue Dec 16, 2024 · 2 comments
Open
1 task done

power-management/switch_power_mode failed in pc-sanity #1656

binli opened this issue Dec 16, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@binli
Copy link
Contributor

binli commented Dec 16, 2024

Bug Description

[Summary]
power-management/switch_power_mode failed
certification_status: non-blocker

[I/O log]
Failed to communicate with power-profiles-daemon: g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Not Authorized: org.freedesktop.UPower.PowerProfiles.switch-profile (9)
Failed to communicate with power-profiles-daemon: g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Not Authorized: org.freedesktop.UPower.PowerProfiles.switch-profile (9)
Failed to set power mode to balanced.
Power mode choices: ['low-power', 'balanced', 'performance']

[Reproduce Steps]

  1. sudo checkbox-cli run com.canonical.certification::power-management/switch_power_mode

[Results]
failed

Cert-blocker Test Case

  • cert-blocker

To Reproduce

run power-management/switch_power_mode

Expected Result

all is green

Actual Result

it could not pass

Environment

24.04

Relevant log output

No response

Additional context

No response

@binli binli added the bug Something isn't working label Dec 16, 2024
Copy link

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CHECKBOX-1705.

This message was autogenerated

@binli binli self-assigned this Dec 16, 2024
@binli
Copy link
Contributor Author

binli commented Dec 31, 2024

This case will fail when using a remote access, I could reproduce this issue if I remote login with ssh.

It will use a new session, so it will prompt the 'GDBus.Error:org.freedesktop.DBus.Error.AccessDenied' error.

$ loginctl session-status 
942 - u (1000)
  Since: Tue 2024-12-31 18:13:27 CST; 5min ago
  State: active
 Leader: 27176 (sshd)
 Remote: 10.106.0.217
Service: sshd
   Type: tty
  Class: user
   Idle: no
   Unit: session-942.scope
         ├─27176 "sshd: u [priv]"
         ├─27290 "sshd: u@pts/0"
         ├─27323 -bash
         ├─27571 loginctl session-status
         └─27572 pager

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant