Today my XC90 started displaying a Brake Failure - Stop Safely message along with some warning lights, roughly a couple of minutes after I left home. The tripmeter was dashed out and the odometer stopped incrementing. Cruise could be selected but would not engage. I naturally browned my pants a little but quickly figured out the brakes were still working.
I turned around and started driving home, and after a minute or so, everything disappeared back to normal. I kept driving home, and noted that cruise could be selected but not engaged still, even though there were no errors. The odometer and trip meter returned to normal. I returned home to get the code reader and put it on the car, but when I restarted the car, the message had changed to Engine System Service Required with different warning lights. The car still drove fine around the driveway and cruise could still be selected, but not engaged. The odometer and trip meter were still working.
I drove the car a few times afterwards once I had confidence that it was safe enough, and found that the car randomly switched between these three states: 'Brake Failure Stop Safely', no failure, 'Engine System Service Required'.
In all 3 states, the car seems to drive fine. I've read stories of the tacho not working, the gearbox not shifting, the throttle not changing the revs with similar failures, but I don't get any of that. The only thing that is consistently not working now is being able to select cruise. I thought a sticking brake pedal might cause Cruise to not be able to be selected. My brother was driving behind me and reported that the brake lights are working fine, but I think that some pedals may have multiple switches, one for cruise and one for brakes. I could be wrong though.
I've done a lot of googling and read in a variety of Volvo forums that it could be a speed sensor on the wheel, or perhaps a module like the ABS module or BCM. Other people suggested dry solder joints, some say pedal sensor. One thread suggested a plug into the CEM comes loose.
I'd like to know where the vehicle gets its speed signal from, because that seems to be working fine at all times (speedo), so why does the odometer stop working I wonder? I was wondering if anyone had any experience with this and could offer any suggestions before I start down the path of replacing things?