From 207c0c5b2c97cfc2140bdf3a6a5e3d434dc2f558 Mon Sep 17 00:00:00 2001 From: Sam Stenvall Date: Tue, 25 Jun 2024 14:56:22 +0300 Subject: [PATCH] Try waking using fe2 instead of fe --- src/axe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/axe.c b/src/axe.c index 6fc8098266..a599264c06 100644 --- a/src/axe.c +++ b/src/axe.c @@ -233,9 +233,9 @@ int axe_wakeup(adapter *_ad, int fe_fd, int voltage) { ad = get_adapter(i); if (ad == NULL || is_adapter_disabled(i)) continue; - LOG("axe_wakeup: waking adapter %d, fd %d", i, ad->fe); - if (ioctl(ad->fe, FE_SET_VOLTAGE, voltage) == -1) - LOG("axe_wakeup: FE_SET_VOLTAGE failed fd %d: %s", ad->fe, + LOG("axe_wakeup: waking adapter %d, fd %d", i, ad->fe2); + if (ioctl(ad->fe2, FE_SET_VOLTAGE, voltage) == -1) + LOG("axe_wakeup: FE_SET_VOLTAGE failed fd %d: %s", ad->fe2, strerror(errno)); } return 0;