LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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


Reply
  Search this Thread
Old 03-23-2018, 05:59 AM   #1
igo470
LQ Newbie
 
Registered: Apr 2016
Posts: 19

Rep: Reputation: Disabled
Remote Control Fails to Wake Laptop via FLIRC MX Linux Metamorphosis


Using a FLIRC dongle (2nd gen)
The laptop has wake on USB enabled in the BIOS
Dual booting Win 10 & MX Linux
Remote control will put laptop to sleep and wake successfully in Win 10 mode.
Remote control will put laptop to sleep but won't wake in MX Linux mode.
Is this likely to be distro specific or Linux generally?
Any thoughts on a solution?
(Why not just run Win 10? Well the laptop runs with less fan noise in Linux MX and I want to use it as an HTPC).

Thanks for your time
 
Old 03-23-2018, 12:18 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Welcome to LQ!

Wake on LAN (WOL) needs to be enabled in your BIOS (you already did that) AND enabled in software

ethtool will let you know if it is. As root, run
Code:
ethtool eth0
You will want to see these two lines in the output:
Code:
Supports Wake-on: g
Wake-on: g
If you don't see those two likes, try, as root, the following
Code:
ethtool -s eth0 wol g
Then shutdown, and see if WOL works.


Debian have quite a good page on WOL here
 
Old 03-23-2018, 03:37 PM   #3
igo470
LQ Newbie
 
Registered: Apr 2016
Posts: 19

Original Poster
Rep: Reputation: Disabled
Thank you for prompt and helpful response. These are the results of running the suggested commands:

$ ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Link partner advertised pause frame use: No
Link partner advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Cannot get wake-on-lan settings: Operation not permitted
Current message level: 0x00000033 (51)
drv probe ifdown ifup
Link detected: yes



$ ethtool -s eth0 wol g
Cannot get current wake-on-lan settings: Operation not permitted
not setting wol

This is some info which may be helpful:
-PCI Devices-
Host bridge : Intel Corporation Mobile 4 Series Chipset Memory Controller Hub
VGA compatible controller : Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller
Display controller : Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller
USB controller : Intel Corporation 82801I
USB controller : Intel Corporation 82801I
USB controller : Intel Corporation 82801I
USB controller : Intel Corporation 82801I
Audio device : Intel Corporation 82801I
PCI bridge : Intel Corporation 82801I
PCI bridge : Intel Corporation 82801I
PCI bridge : Intel Corporation 82801I
PCI bridge : Intel Corporation 82801I
PCI bridge : Intel Corporation 82801I
USB controller : Intel Corporation 82801I
USB controller : Intel Corporation 82801I
USB controller : Intel Corporation 82801I
USB controller : Intel Corporation 82801I
PCI bridge : Intel Corporation 82801 Mobile PCI Bridge
ISA bridge : Intel Corporation ICH9M LPC Interface Controller
SATA controller : Intel Corporation 82801IBM/IEM
Network controller : Ralink corp. RT3090 Wireless 802.11n 1T/1R PCIe
Ethernet controller : Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller

I checked boot options again. There are two which affect this problem.
System has:
1)Wake on USB (enabled)

2)Wake on LAN with these options
a) Disabled
b) Boot to network
c) Follow boot order (enabled)

Last edited by igo470; 03-23-2018 at 03:46 PM. Reason: Additional info
 
Old 03-23-2018, 04:59 PM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
$ ethtool -s eth0 wol g
Cannot get current wake-on-lan settings: Operation not permitted
not setting wol
I can see that you are running this command as yourself, as the command line prompt ends with $ (any ordinary user) not # which would indicate that you are running as the root user.

With linux, some commands, or subsets of commands may not be executed ("permission refused"), or will not return some results, unless you have the right permissions / privileges. This is for security.

I see that MX Linux is based on Debian, so try:
Code:
sudo ethtool eth0
and give your password.

You might eventually appreciate that linux defaults to not enabling the waking up your computer by WOL when you have physically turned your computer off (or so you thought.)
This is a very sensible default, when you think about it.

If you want WOL enabling, you will have to go through a few hoops, and in doing this, hopefully you will understand the implications of enabling this.

This is not a BIOS problem, this is you telling your linux system that you understand the security implications of enabling WOL, and have gone through the hoops to enable it.

I have WOL enabled on my home network. I have a load of computers here and do not see the need to be running up and down stairs all the time, so WOL suits me on my LAN.

But I have a robust firewall.
So nobody on the big bad internet can wake any of my computers. I hope.
You have been warned.
 
Old 03-23-2018, 05:54 PM   #5
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Quote:
Originally Posted by tredegar View Post
So nobody on the big bad internet can wake any of my computers. I hope.
They shouldn't be able to. Unless you set up forwarding of the required "magic packet" in your router.

O.P. - Also note that WOL only seems to work (in my testing) if the computer you are trying to wake was shutdown cleanly. If you had a power outage, and your computer crashed, WOL does not work (at least not in the testing that I did).
 
Old 03-23-2018, 07:51 PM   #6
igo470
LQ Newbie
 
Registered: Apr 2016
Posts: 19

Original Poster
Rep: Reputation: Disabled
Thank you both for the ongoing support. You've probably deduced that I'm an absolute noob.So, with root privileges I get this output:
root@Compaq620:/home/clive# ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Link partner advertised pause frame use: No
Link partner advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: d
Current message level: 0x00000033 (51)
drv probe ifdown ifup
Link detected: yes
root@Compaq620:/home/clive# ethtool -s eth0 wol g
root@Compaq620:/home/clive#

Will restart and see if it's worked

After rebooting nothing changed. Did I do something wrong?

root@Compaq620:/home/clive# ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Link partner advertised pause frame use: No
Link partner advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: d
Current message level: 0x00000033 (51)
drv probe ifdown ifup
Link detected: yes

Last edited by igo470; 03-23-2018 at 08:01 PM. Reason: Additional info
 
Old 03-24-2018, 04:45 AM   #7
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
Will restart and see if it's worked

After rebooting nothing changed. Did I do something wrong?
I asked you to give the command
Code:
ethtool -s eth0 wol g
Then shutdown and see if WOL works.
You rebooted, so the interface has gone back to its default Wake-on: d
Which is not what you want.

Try this:
Set the interface to WOL on g (the magic packet) with sudo ethtool -s eth0 wol g
Check that it has "taken" with another sudo ethtool eth0
Shutdown. Do not reboot or restart. Try sending the magic packet.
I have to send the magic packet as root for it to work: sudo wakeonlan b8:ac:cc:12:04:fd

If WOL works now, the Debian page I linked to in post No2 suggests different ways to set the interface always to listen for the magic packet, despite reboots.
 
Old 03-24-2018, 06:17 AM   #8
igo470
LQ Newbie
 
Registered: Apr 2016
Posts: 19

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by tredegar View Post
I asked you to give the command
Code:
ethtool -s eth0 wol g
Then shutdown and see if WOL works.
You rebooted, so the interface has gone back to its default Wake-on: d
Which is not what you want.

Try this:
Set the interface to WOL on g (the magic packet) with sudo ethtool -s eth0 wol g
Check that it has "taken" with another sudo ethtool eth0
Shutdown. Do not reboot or restart. Try sending the magic packet.
I have to send the magic packet as root for it to work: sudo wakeonlan b8:ac:cc:12:04:fd

If WOL works now, the Debian page I linked to in post No2 suggests different ways to set the interface always to listen for the magic packet, despite reboots.
Hello,
Thank you for your patience. I followed your instructions again. Your solution is correct. However reading your response I realised that our common language has let us down. Or rather that what I thought was a clear explanation of my problem was not nearly clear enough! Let me attempt to clarify what I originally asked.
I have a laptop which I want to use as an HTPC using software called Kodi. I want to control the HTPC with a remote control i.e. a TV type remote. The laptop doesn't have an IR reciever so I'm using a USB device called Flirc. Flirc is a programable IR USB dongle. The remote control works fine in Windows but wake/resume doesn't work in Linux. Only sleep works.
 
Old 03-24-2018, 06:37 AM   #9
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Ahhh! You want "wake on USB" not WOL. I misread your OP.

I have no experience with this.

You might look here and here for some solutions.
 
Old 03-24-2018, 10:23 AM   #10
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Quote:
Originally Posted by tredegar View Post
Ahhh! You want "wake on USB" not WOL.
Oh! You're right! He did say "Wake on USB". Oops, I missed that too. I guess I saw "Wake on ..." and assumed the rest. I've never heard of "Wake on USB", so I have no info to offer about that either. Sorry for muddying the waters.
 
Old 03-24-2018, 11:36 AM   #11
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
For what it's worth, I have searched high and low for how to enable "Wake on USB", and tried all sorts of things, but not one of them has enabled this feature.
Maybe my laptop doesn't support it?

I cannot test my hardware with windows because I told MS where they could go when they promised me win98 would solve my problems, and it didn't.

It might be worth starting a new thread titled, perhaps, "How to enable wake on USB?"
 
Old 03-24-2018, 03:20 PM   #12
igo470
LQ Newbie
 
Registered: Apr 2016
Posts: 19

Original Poster
Rep: Reputation: Disabled
Thanks everyone. Grateful for your assistance.I did learn this -
$ (any ordinary user) not # which would indicate that you are running as the root user
 
Old 03-24-2018, 03:23 PM   #13
igo470
LQ Newbie
 
Registered: Apr 2016
Posts: 19

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by tredegar View Post
For what it's worth, I have searched high and low for how to enable "Wake on USB", and tried all sorts of things, but not one of them has enabled this feature.
Maybe my laptop doesn't support it?

I cannot test my hardware with windows because I told MS where they could go when they promised me win98 would solve my problems, and it didn't.

It might be worth starting a new thread titled, perhaps, "How to enable wake on USB?"
Which would be the appropriate sub forum to post in for How to Wake on USB
 
Old 03-24-2018, 05:17 PM   #14
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
Which would be the appropriate sub forum to post in for How to Wake on USB
I don't think that matters too much.
Here at LQ, I like to think that we tend to be quite helpful, and not fussy about rules or protocols for postings.

I only picked up your question because it was listed under "Zero replies threads" and a couple of days old.
So, I felt a bit sorry for you and thought we at LQ might be able to help you as a first poster and your first question was possibly ignored.

I did my best and failed.
Such is life.

As you have admitted that you are a 'newbie', maybe that's the forum to post to.
Otherwise this forum, "hardware" is also entirely appropriate in my opinion.
Please don't post your question in more than one forum though. That's frowned upon.

Choose a forum, post, see what happens.

For me, LQ has always been a good place to seek sensible advice, and I have been here for a while.

Good luck, and searching, with solving your problem.

I do ask that if you solve it, that you post the steps you took to make it work for you, here. Or in another thread.
That'll help someone else searching on solving the same problem.

With linux, I have learned that perseverance always wins.

Best wishes.
 
Old 03-25-2018, 02:52 AM   #15
igo470
LQ Newbie
 
Registered: Apr 2016
Posts: 19

Original Poster
Rep: Reputation: Disabled
OK so I persevered and found this
I've tried to follow the instructions, but in places they're a bit scant for a noob such as me. I have managed the first step (but not totally confident with the sudo nano part as there doesn't seem to be a save option) and can suspend and wake with the remote. However after reboot all of the USBs are wake disabled. The poster explains how overcome this. Once again I'm not sure what the poster is attempting to explain. Is it possible with his instructions to permanently wake enable all USB ports? Perhaps I could ask you to flesh out his steps for me?

Thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Mint 13 - Laptop Won't Wake Up from Suspend pcfast Linux - Newbie 5 12-16-2013 09:08 PM
LXer: Taking Control: Interview with FLIRC Creator Jason Kotzin LXer Syndicated Linux News 0 03-19-2013 03:00 AM
LXer: Linux: Using Remote Wakeup (Wake on LAN) LXer Syndicated Linux News 0 09-25-2010 01:10 AM
Anyone got the Remote Wonder (ATI's USB remote control) to work under Linux? dezireduser Linux - Hardware 2 11-06-2005 08:47 AM
video projector's remote control & linux laptop gour Linux - Laptop and Netbook 0 10-05-2005 09:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration