Jump to content

utorrent works on LINUX!


kraiser

Recommended Posts

  • Replies 241
  • Created
  • Last Reply

Top Posters In This Topic

Looking to fully move over to Linux in the near future & this is one area that is holding me back, I have tried KTorrent but I have fallen in love with µTorrent & would hate to abandon juch a great client.

If they ever get a Debian package of it up & running I would be a pig in the brown stuff.

Link to comment
Share on other sites

Looking to fully move over to Linux in the near future & this is one area that is holding me back, I have tried KTorrent but I have fallen in love with µTorrent & would hate to abandon juch a great client.

If they ever get a Debian package of it up & running I would be a pig in the brown stuff.

A debian package of what? wine already comes in a deb from

deb http://wine.sourceforge.net/apt/ binary/

And utorrent is its own package (only one file needed, no extra config necessary).

I've just submitted a patch to the wine list which fixes the problem of torrents not starting after uTorrent version 1.1.3. The next version of wine should support the latest uTorrent! I'd also be happy to answer any questions about what wasn't working.

Link to comment
Share on other sites

I've just submitted a patch to the wine list which fixes the problem of torrents not starting after uTorrent version 1.1.3. The next version of wine should support the latest uTorrent! I'd also be happy to answer any questions about what wasn't working.

CapnBry, I love you!!! ;) I'm trying it right away.

btw, does the sourceforge repo contain the latest ver with the patch or I should compile it by my self?

Link to comment
Share on other sites

What was the problem with wine?

The symptom was that utorrent would run, but use 100% cpu and not ever start downloading a file (because it couldn't connect to the tracker). The problem occured when utorrent changed to using the array of 64 wait events and started using WSAEventSelect(...) in 1.1.4. The bug in wine was that when you called WaitForMultipleObjectsEx(...) with 64 handles (the maximum that should be allowed), their kernel32.dll was kicking back an error (invalid parameter). This cause utorrent to loop "balls to the wall" around that Wait call.

It turns out wine would only allow 63 handles to be waited on at a time, instead of the expected 64. This was due to a simple obiwan in dlls/kernel/sync.c:

    if (count >= MAXIMUM_WAIT_OBJECTS)

// should be

if (count > MAXIMUM_WAIT_OBJECTS)

All the rest of the code in that function and ntdll support up to 64 wait objects so this turned out to be the only change. The patch is on wine-devel, and should be in cvs within a few days. However, if you already have cvs, you can just change the line yourself (line 176 I think).

EDIT: And for the record, I was downloading at 9mbit and uploading at 1mbit without a problem and ~10% cpu use on a P4 2.4GHz. Running about 3% right now at 500kbit/1mbit.

Link to comment
Share on other sites

After a day of use there are some minor glitches:

-- The SysListView32 (CListCtrl) controls flash pretty badly when updating. Stuff on the General and Speed tabs flash noticably too, but not as bad.

-- No icons on the tabcontrol, possibly due to errors using ImageList_LoadImageW failing.

-- No icon on sorted column in ListViews, same reason I believe. Column highlight also does not work since LVM_SETSELECTEDCOLUMN is not supported by wine at this time.

-- Alternating lines of the ListViews do no have alternating color. (I don't know, is this tied to window theming?)

-- Minimizing minimizes but does not make the main window disappear. When restored only the non-client areas of the window repaint. Right clicking the tooltray and selection Hide/Show uTorrent makes it start painting again. For some reason, Hide from the tooltray icon works fine.

-- "Open containing folder" does not do anything.

-- Boss hotkey doesn't work. Wine does not support RegisterGlobalHotkey at this time.

-- SetThreadExecutionState(1) doesn't prevent the machine from entering standby under Linux.

I'd love to see uTorrent work just as well under wine as it does under windows. Any assistance I can provide to resolve these issues, I will.

Link to comment
Share on other sites

CapnBry, sorry I didn't mention you in the post, but I don't know anything about you except the nick, so... Anyway, people clicking the link will read your post and will know who should get the credit ;)

What am I besides a nick? It's not like I wrote uTorrent or wine, I just removed one character from a file. :)

That was the easy part too, the hard part was getting around PECompact to get disassembly I would work with.

Link to comment
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...