• Updated 2023-07-12: Hello, Guest! Welcome back, and be sure to check out this follow-up post about our outage a week or so ago.

Setting mouse speed on boot via an INIT?

ry755

Active member
Hi! So, I've been playing around with a Macintosh SE that I recently acquired and of course, the PRAM battery on the motherboard is long dead (I plan on opening up the case to remove it soon). This is mostly fine, I don't mind the fact that the date and time aren't accurate. However, what does slightly annoy me is having to increase the mouse speed manually after every power cycle. It gets reset to the slowest speed by default. Ideally I would replace the internal battery with a CR2032 but until I get around to that, are there any extensions out there that can automatically set preferences like this on bootup? I'm open to making my own little extension for this if necessary, if someone could just point me in the right direction to some documentation about INIT stuff. :D
 

Phipli

Well-known member
Hi! So, I've been playing around with a Macintosh SE that I recently acquired and of course, the PRAM battery on the motherboard is long dead (I plan on opening up the case to remove it soon). This is mostly fine, I don't mind the fact that the date and time aren't accurate. However, what does slightly annoy me is having to increase the mouse speed manually after every power cycle. It gets reset to the slowest speed by default. Ideally I would replace the internal battery with a CR2032 but until I get around to that, are there any extensions out there that can automatically set preferences like this on bootup? I'm open to making my own little extension for this if necessary, if someone could just point me in the right direction to some documentation about INIT stuff. :D
I think this covers your question. A couple of utilities named (as well as how to set the time from the network).

 

ry755

Active member
I think this covers your question. A couple of utilities named (as well as how to set the time from the network).

Oh that looks perfect! Thank you :D
 

ry755

Active member
Update: looks like it doesn't like running on System 6.0.8, despite the readme saying it would probably be compatible :p
It dumps me into MacsBug with the error "Undefined A-Trap at A0073CF6"
 

Attachments

  • PXL_20230707_231416971.jpg
    PXL_20230707_231416971.jpg
    1.8 MB · Views: 21

ry755

Active member
Hmm, I just installed System 7.1 on the same Macintosh SE and I'm getting a similar unimplemented trap error, except without MacsBug since I don't have it currently installed. Outdated/incorrect ROM version maybe? I have no idea.
 

Phipli

Well-known member
Hmm, I just installed System 7.1 on the same Macintosh SE and I'm getting a similar unimplemented trap error, except without MacsBug since I don't have it currently installed. Outdated/incorrect ROM version maybe? I have no idea.
Sounds like it needs a newer computer. Bit suprising that it supports System 6, but not the SE.

I swear I've seen more software options but can't remember names.
 
Last edited:

Crutch

Well-known member
I can’t tell here @ry755 which utility did you end up using? PRAM Auto Restore or something else? That definitely works under 6.0.8 at least on an SE/30.

If you try it again, please hit “IP” when that Macsbug screen comes up and we can see where it’s crashing.
 

ry755

Active member
I can’t tell here @ry755 which utility did you end up using? PRAM Auto Restore or something else? That definitely works under 6.0.8 at least on an SE/30.

If you try it again, please hit “IP” when that Macsbug screen comes up and we can see where it’s crashing.
Oops sorry, yes the one that was crashing was PRAM Auto-Restore. Looks like the issue is because of a call to `GetCIcon`, which based on the name I assume is a color QuickDraw trap and iirc the original 68000-powered Macs don't have support for that. Now I'm curious to see if I can patch these calls out.
 

Attachments

  • PXL_20230708_225100891.jpg
    PXL_20230708_225100891.jpg
    2.4 MB · Views: 15

Crutch

Well-known member
Ha yeah the code he’s using to display his icon at startup is probably assuming CQD is available. That’s pretty silly.
 

ry755

Active member
Update on attempting to patch the color QuickDraw calls: I used ResEdit with a CODE editor addon to modify those traps to what I assume are the original monochrome equivalents. Unfortunately it now crashes somewhere else, probably because differing formats between color and monochrome icons. :(
But I mean hey, part of the reason why I got this Macintosh SE in the first place was so I could do some classic Mac OS programming on it, so I may just end up writing my own little utility for this after all hehe (or I could simply replace the PRAM battery but where would the fun be in that?)
 

Attachments

  • PXL_20230709_001029482.jpg
    PXL_20230709_001029482.jpg
    2.1 MB · Views: 12
  • PXL_20230709_001416433.jpg
    PXL_20230709_001416433.jpg
    1.8 MB · Views: 11

Crutch

Well-known member
Make sure DisposeCIcon isn’t being called later. If it is, replace it with ReleaseResource and try again.
 

ry755

Active member
Make sure DisposeCIcon isn’t being called later. If it is, replace it with ReleaseResource and try again.
It doesn't seem to be reaching that point yet, I replaced the DisposeCIcon call with ReleaseResource but I'm still getting the exact same error as the second image in my previous post.
Also these errors occur when I open the control panel, not on startup, which at least makes them a bit easier to deal with.
 

Crutch

Well-known member
Oh obvious thing … you changed _GetCIcon to _GetIcon I presume, but did you actually create the corresponding ICON resource?

Open up each of the cicn resources in PRAM Auto Restore and copy them to ‘ICON’ resources with matching resource IDs.
 

ry755

Active member
Oh obvious thing … you changed _GetCIcon to _GetIcon I presume, but did you actually create the corresponding ICON resource?

Open up each of the cicn resources in PRAM Auto Restore and copy them to ‘ICON’ resources with matching resource IDs.
Just tried that, I wasn't able to copy the color icons directly so I just created blank/empty ICON recources with the same IDs. Still getting the same error.
 
Top