Fedora Linux Support Community & Resources Center
  #1  
Old 4th May 2012, 03:53 AM
UNIXgreybeard Offline
Registered User
 
Join Date: Mar 2012
Location: Earth
Posts: 4
linuxfirefox
Hylafax 6.0.5 on FC15 - modem not working.

I know the modem works as I am able to talk to it directly with minicom but I can't get hylafax to work with the modem - keeps saying its wedged.

systemd config:
[root@redhat system]# pwd
/etc/systemd/system
[root@redhat system]# cat faxgetty-ttyR0.service
[Unit]
Description=FaxGetty Start Modem ttyR0

[Service]
Type=simple
User=root
Group=root
Restart=always
ExecStart=/usr/local/sbin/faxgetty /dev/ttyR0
RestartSec=30

[Install]
WantedBy=multi-user.target


when I systemctl start faxgetty-ttyR0.service
May 3 21:44:34 redhat FaxGetty[23673]: OPEN /dev/ttyR0 HylaFAX (tm) Version 6.0.5
May 3 21:45:43 redhat FaxGetty[23673]: /dev/ttyR0: Can not initialize modem.
May 3 21:48:59 redhat FaxGetty[23673]: Unable to setup modem on /dev/ttyR0; giving up after 2 attempts
May 3 21:48:59 redhat FaxGetty[23673]: MODEM /dev/ttyR0 appears to be wedged
May 3 21:48:59 redhat FaxGetty[23673]: CLOSE /dev/ttyR0
May 3 21:49:29 redhat systemd[1]: faxgetty-ttyR0.service holdoff time over, scheduling restart.

I've set the debugging level to max:
[root@redhat etc]# grep fff *
config:ServerTracing: 0xfffff
config.ttyR0:ServerTracing: 0xfffff
config.ttyR0:SessionTracing: 0xfffff

Yet I'm not getting any real useful output telling me what part of the system is not configured correctly.

Suggestions that are not "use efax"?
Reply With Quote
  #2  
Old 4th May 2012, 09:54 AM
george_toolan Offline
Registered User
 
Join Date: Dec 2006
Posts: 2,080
linuxfirefox
Re: Hylafax 6.0.5 on FC15 - modem not working.

Check your permissions

Code:
ls -l /usr/local/sbin/faxgetty /dev/ttyR0
If faxgetty isn't allowed to access the modem then it cannot be initialized ;-)
Reply With Quote
  #3  
Old 4th May 2012, 11:27 AM
UNIXgreybeard Offline
Registered User
 
Join Date: Mar 2012
Location: Earth
Posts: 4
linuxfirefox
Re: Hylafax 6.0.5 on FC15 - modem not working.

Quote:
Originally Posted by george_toolan View Post
Check your permissions

Code:
ls -l /usr/local/sbin/faxgetty /dev/ttyR0
If faxgetty isn't allowed to access the modem then it cannot be initialized ;-)
Already though of that and I can produce conditions where faxgetty will "throw an error":
May 4 05:14:45 redhat systemd[1]: faxgetty-ttyR0.service holdoff time over, scheduling restart.
May 4 05:14:45 redhat systemd[1]: Unit faxgetty-ttyR0.service entered failed state.
May 4 05:14:45 redhat systemd[1]: faxgetty-ttyR0.service: main process exited, code=exited, status=255


OR:
May 4 05:35:47 redhat systemd[1]: faxgetty-ttyR0.service holdoff time over, scheduling restart.
May 4 05:35:47 redhat systemd[1]: Unit faxgetty-ttyR0.service entered failed state.
May 4 05:35:47 redhat FaxGetty[5054]: The fax server must run with real uid root.
May 4 05:35:47 redhat systemd[1]: faxgetty-ttyR0.service: main process exited, code=exited, status=255


(entered failed state - I know that. Tell me WHY. If I wanted 'there is a failure' message with no WHY I'll use Microsoft software thankyouverymuch)


Here is an example of the non-permissions mucked up communications. (sitting in a log file that should not have been in messages...*sigh*)
May 3 18:39:36 redhat FaxGetty[22352]: OPEN /dev/ttyR0 HylaFAX (tm) Version 6.
0.5
May 3 18:39:37 redhat FaxGetty[22352]: MODEM set DTR OFF
May 3 18:39:37 redhat FaxGetty[22352]: DELAY 75 ms
May 3 18:39:37 redhat FaxGetty[22352]: MODEM set DTR ON
May 3 18:39:37 redhat FaxGetty[22352]: DELAY 2600 ms
May 3 18:39:40 redhat FaxGetty[22352]: MODEM set baud rate: 19200 baud, input f
low RTS/CTS, output flow RTS/CTS
May 3 18:39:40 redhat FaxGetty[22352]: DELAY 10 ms
May 3 18:39:40 redhat FaxGetty[22352]: MODEM flush i/o
May 3 18:39:40 redhat FaxGetty[22352]: <-- [4:ATZ\r]
May 3 18:40:10 redhat FaxGetty[22352]: MODEM TIMEOUT: reading line from modem
May 3 18:40:10 redhat FaxGetty[22352]: MODEM <Timeout>
May 3 18:40:10 redhat FaxGetty[22352]: MODEM set DTR OFF
May 3 18:40:10 redhat FaxGetty[22352]: DELAY 75 ms
May 3 18:40:10 redhat FaxGetty[22352]: MODEM set DTR ON
May 3 18:40:10 redhat FaxGetty[22352]: DELAY 2600 ms
May 3 18:40:14 redhat FaxGetty[22352]: MODEM set baud rate: 19200 baud, input f
low RTS/CTS, output flow RTS/CTS
May 3 18:40:14 redhat FaxGetty[22352]: DELAY 10 ms
May 3 18:40:14 redhat FaxGetty[22352]: MODEM flush i/o
May 3 18:40:14 redhat FaxGetty[22352]: <-- [4:ATZ\r]
May 3 18:40:44 redhat FaxGetty[22352]: MODEM TIMEOUT: reading line from modem
May 3 18:40:44 redhat FaxGetty[22352]: MODEM <Timeout>
May 3 18:40:44 redhat FaxGetty[22352]: MODEM set DTR OFF
May 3 18:40:44 redhat FaxGetty[22352]: /dev/ttyR0: Can not initialize modem.
May 3 18:40:44 redhat FaxGetty[22352]: STATE CHANGE: BASE -> MODEMWAIT (timeout
30)

Over on a working machine this is the permissions BTW:
[root@redhat etc]# ls -l /usr/sbin/faxgetty /dev/ttyR0
crw------- 1 uucp uucp 46, 0 May 4 04:51 /dev/ttyR0
-rwxr-xr-x 1 root root 63964 Apr 19 2007 /usr/sbin/faxgetty

Last edited by UNIXgreybeard; 4th May 2012 at 11:37 AM.
Reply With Quote
  #4  
Old 4th May 2012, 04:09 PM
george_toolan Offline
Registered User
 
Join Date: Dec 2006
Posts: 2,080
linuxfirefox
Re: Hylafax 6.0.5 on FC15 - modem not working.

Learn how to READ and stop complaining about linux ;-)

Quote:
May 4 05:35:47 redhat FaxGetty[5054]: The fax server must run with real uid root.
Reply With Quote
  #5  
Old 4th May 2012, 07:12 PM
UNIXgreybeard Offline
Registered User
 
Join Date: Mar 2012
Location: Earth
Posts: 4
windows_xp_2003firefox
Re: Hylafax 6.0.5 on FC15 - modem not working.

Quote:
Originally Posted by george_toolan View Post
Learn how to READ
Perhaps *I* was not clear in *my* communications.

I can create the permissions problem by FORCING it to run as UIDS not intended.

Correct UIDs and incorrect UIDs result in the same end condition - not working.

As my output noted - it will complain when the UID is not correct.

Oh, and as noted later in my communication I showed a working machine that has different UIDs/GIDs. Perhaps you would like to explain that difference rather than state

Learn how to READ

Quote:
Originally Posted by george_toolan View Post
and stop complaining about linux ;-)
How is this for an actual complaint then?

The driver shipped with the kernel:
[ 28.195173] RocketPort device driver module, version 2.09, 12-June-2003

The driver from Comtrol:
[ 1231.523931] RocketPort device driver module (SMP:yes), version 3.16, 11-Aug-2011

in 2 years the driver in the Linux kernel will be 10 years old.


If it is the old stale driver I'll be sure to post that solution.

---------- Post added at 01:12 PM ---------- Previous post was at 10:52 AM ----------

Resolution:

FC15 does not ship with setrocket but did ship with rocket.ko

The shipping rocket.ko is from 2003. The latest driver from Comtrol is from 2011 and ships with setrocket.

By replacing the 2003 rocket.ko with the driver from Comtrol faxgetty now works. I don't know if the 2011 vintage setrocket will work with the default rocket.ko.

(with narry a concern about the permissions)
Reply With Quote
Reply

Tags
fc15, hylafax, modem, wedged, working

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
fc14->fc15 usb 3.0 not working prague Using Fedora 5 30th May 2011 09:02 AM
HylaFax email notification not working pshiflet Using Fedora 0 29th March 2011 08:06 PM
modem problems with hylafax TazMan1 Using Fedora 0 27th April 2009 02:23 PM
Fax Modem & CUPS (hylafax & fax4CUPS) BMillikan Hardware & Laptops 0 11th September 2005 05:02 AM


Current GMT-time: 10:26 (Saturday, 20-12-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
...Creek Side - Stockholm-Arlanda Airport (ARN) Travel Photos on Instagram - Marina of Koper Travel Photos - Te Whiti Park Instagram Photos - Texas State Fair Photos on Instagram